public void MinionAttack(IMinion attacker, IMinion defender, Board defenderBoard) { defenderBoard.MinionTakeDamage(defender, attacker.Attack); MinionTakeDamage(attacker, defender.Attack); attacker.OnAttack(new TriggerParams() { Activator = attacker, Target = defender, Board = this, RivalBoard = defenderBoard }); OnMinionAttacked(attacker); ClearDeaths(defenderBoard); defenderBoard.ClearDeaths(this); }
public void MinionAttack(IMinion attacker, IMinion defender) { var defenderResult = RivalBoard.MinionTakeDamage(defender, attacker.CurrentAttack); var attackerResult = MinionTakeDamage(attacker, defender.CurrentAttack); attacker.OnAttack(new TriggerParams() { Activator = attacker, Target = defender, Board = this, RivalBoard = RivalBoard, Overkill = defenderResult.overkill, Killed = defenderResult.killed }); OnMinionAttacked(attacker); ClearDeaths(); RivalBoard.ClearDeaths(); }