public void CheckVictoryORDeath(HerroTemplate other) { if (Helth <= 0) { Dead?.Invoke(this, new ResultBatle($"герой {Name} побежден")); countDeath++; } if (other.Helth <= 0) { Victory?.Invoke(this, new ResultBatle($"герой {Name} одержал победу")); countVictory++; } }
public override void Attack(HerroTemplate otherHerro) { GenerateAttack(MinDamage, MaxDamage); base.Attack(otherHerro); }
public virtual void Attack(HerroTemplate otherHerro) { otherHerro.GetDamage(Damage); }