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()); } }
public void HealWizard(Wizard target) { target.SetHP(target.GetHP() + this.baseHealingPower); }
public void HealWizard(Wizard target) { target.SetHP(target.GetHP() + this.BaseHealingPower + this.SpellBook.GetHealingPower() + this.Weapon.GetHealingPower() + this.Armor.GetHealingPower()); }