예제 #1
0
 public virtual void Attack(Player target)
 {
     if (Technique.CanAttack(target.Role))
     {
         target.Damage(Technique.HitPoints);
         target.Notify("You are being ATTACKED by " + this.ToString() + "!!! Your HP: " + target.Health + " / Enemy HP: " + this.Health);
         this.Notify("Attack hit on enemy " + target.ToString() + ". Enemy HP: " + target.Health);
         this.NotifyServer(this.ToString() + " attacked " + target.ToString());
         this.NotifyServer(target.ToString() + " / HP = " + target.Health);
     }
 }