public override void ApplyEffect(AbilityCaster caster, EventHandler[] targets, AbilityData data) { for (int i = 0; i < targets.Length; i++) { AttackInstance.Attack(this, caster, targets[i], data.MainValue, data.MainType, data.SFX); } }
public static AttackInstance Attack(AbilityEffect origin, AbilityCaster attacker, EventHandler target, float amount, DamageType type, AbilitySFXPool sfx) { AttackInstance atkInst = new AttackInstance(origin, attacker, target, amount, type, sfx); atkInst.Execute(); return(atkInst); }