示例#1
0
 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);
     }
 }
示例#2
0
        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);
        }