10 public override bool IsElemental
19 public override void Tick()
21 Dice dice =
Dice.Create(
"miasma_", base.power,
null,
null);
24 this.owner.DamageHP(dice.Roll(), base.refVal,
EClass.rnd(base.power / 2) + base.power / 4, AttackSource.Condition,
null,
true);
25 if (this.owner.IsAliveInCurrentZone && base.value > 1)
27 for (
int i = 0; i < 6; i++)
29 foreach (
Chara chara
in this.owner.pos.GetRandomPoint(2,
true,
true,
false, 100).Charas)
31 if ((!this.owner.IsPCFaction || chara.IsPCFaction) && (
this.owner.IsPCFaction || !chara.IsPCFaction) && chara.IsFriendOrAbove(
this.owner) && !chara.HasCondition<
ConMiasma>())
35 con.givenByPcParty = base.givenByPcParty;
36 con.SetElement(base.refVal);
38 if (condition !=
null)
40 condition.value = base.value - 1;
53 Debug.Log(ex.Message);
54 Debug.Log(this.owner);
55 Debug.Log(base.refVal);
61 public override void OnWriteNote(List<string> list)
63 Dice dice =
Dice.Create(
"miasma_", base.power,
null,
null);
64 list.Add(
"hintDOT".lang(dice.ToString(), base.sourceElement.GetName().ToLower(),
null,
null,
null));