Esempio n. 1
0
 public void AttackWizard(Wizard target)
 {
     if ((target.GetDefense() - this.baseAttackPower - this.Armor.GetDamage() - this.Weapon.GetDamage()) < 0 && target.GetHP() > 0)
     {
         target.SetHP(target.GetHP() + target.GetDefense() - this.baseAttackPower - this.Armor.GetDamage() - this.Weapon.GetDamage());
     }
 }
Esempio n. 2
0
 public void HealWizard(Wizard target)
 {
     target.SetHP(target.GetHP() + this.baseHealingPower);
 }
Esempio n. 3
0
 public void HealWizard(Wizard target)
 {
     target.SetHP(target.GetHP() + this.BaseHealingPower + this.SpellBook.GetHealingPower() + this.Weapon.GetHealingPower() + this.Armor.GetHealingPower());
 }