//Has a chance to apply the Runes effect on the boss' minion public void ApplyEffect(EyerisMinionController minion, SpellEffectController controller) { if (Random.Range(0f, 1f) < DoTChance) { minion.ApplyDoT(controller.GetDamageType(), controller.GetPower() * DoTDamage); } }
//Has a chance to apply the Rune's effect on the boss' minion public void ApplyEffect(EyerisMinionController minion, SpellEffectController controller) { if (Random.Range(0f, 1f) <= manaDrainChance) { minion.ManaDrain(); } }
//Applies the spells effects when hitting a target public void ApplyEffects(EyerisMinionController boss) { IEffectRune[] effects = GetComponents <IEffectRune>(); for (int i = 0; i < effects.Length; i++) { effects[i].ApplyEffect(boss, this); } }
//This effect does nothing to bosses minions public void ApplyEffect(EyerisMinionController minion, SpellEffectController controller) { }
//Has a chance to apply the Rune's effect on the boss public void ApplyEffect(EyerisMinionController minion, SpellEffectController controller) { minion.Mark(controller.GetDamageType(), markMultiplier); }