Пример #1
0
 public void Hit(IWarrior target)
 {
     if (target.Weapon == this)
     {
         throw new SuicidalException();
     }
     target.Defend(Damage);
 }
Пример #2
0
 public void Hit(IWarrior target)
 {
     target.Defend(Damage);
 }