public void Steal(Human target) { target.DamageTaken(5); this.Heal(5); return; }
public override int Attack(Human target) { int steal = this.Dexterity * 5; target.DamageTaken(steal); Random Random = new Random(); int stealing = Random.Next(0, 101); if (stealing <= 20) { target.DamageTaken(10); } return(target.Health); }
public override int Attack(Human target) { int damage = this.Intelligence * 5; int damageTaken = target.DamageTaken(damage); this.health += damageTaken; Console.WriteLine($"{this.Name} has cassed a spell at {target.Name} dealt: {damageTaken}"); return(target.Health); }
public override int Attack(Human target) { if (target.Health < 50) { int HP = target.Health; target.DamageTaken(HP); } else { base.Attack(target); } return(this.health); }