public void attack(BattleCharacter performer, BattleCharacter target) { performer.subtractMP(cost); performer.Attack(target, new Attack { power = spellPower(performer), type = attackTypeFromSpellType(type) }); }
public static void Attack(BattleCharacter attacker, BattleCharacter defender) { attacker.Attack(defender, new Attack { power = attacker.character.strength }); }