public void Execute(object active, Hero hero, IBattleAnimationSequence battleAnimationSequence, Action p) { if (battleAnimationSequence.Sucessful) { (active as Enemy).Health.Heal(heal); } hero.TakeDamage(this, battleAnimationSequence.Sucessful); p?.Invoke(); }
public void Execute(object active, Hero hero, IBattleAnimationSequence battleAnimationSequence, Action p) { hero.Health.TakeDamage(Damage); p.Invoke(); }
public void Execute(object active, Hero hero, IBattleAnimationSequence battleAnimationSequence, Action p) { hero.TakeDamage(this, battleAnimationSequence.Sucessful); p?.Invoke(); }