protected void ResolveDamage(Hero hero, Unit unit, int damage, int criticalDamage, Game.DuelResultStatus status) { if (status == Game.DuelResultStatus.Hit) unit.Life -= damage; else if (status == Game.DuelResultStatus.CriticalHit) unit.Life -= criticalDamage; else if (status == Game.DuelResultStatus.CriticalError) hero.Life -= damage; }
protected void ResolveDamage(Hero attacker, Hero defender, int damage, int criticalDamage, Game.DuelResultStatus status) { if (status == Game.DuelResultStatus.Hit) defender.Life -= damage; else if (status == Game.DuelResultStatus.CriticalHit) defender.Life -= criticalDamage; else if (status == Game.DuelResultStatus.CriticalError) attacker.Life -= damage; }