Exemple #1
0
 public void Execute(object active, Hero hero, IBattleAnimationSequence battleAnimationSequence, Action p)
 {
     hero.TakeDamage(this, battleAnimationSequence.Sucessful);
     p?.Invoke();
 }
Exemple #2
0
 public void Attack(Hero hero)
 {
     hero.currentHealth -= armor * agility / 5.0 + baseDamage * strenght / 5.0;
     currentHealth      -= baseDamage * strenght / 20.0;
 }