Beispiel #1
0
 public override bool Attack(IMonsterable monster)
 {
     Console.WriteLine();
     Console.WriteLine("Your opponent is attacking the monster");
     try
     {
         if (base.Attack(monster))
         {
             Console.WriteLine("Your opponent hit the monster! " + Strength + " points to them!");
             monster.PrintMonsterHealth();
             return(true);
         }
     }
     catch (MonsterDiedException)
     {
         throw new AIKilled();
     }
     Console.WriteLine("Your opponent misses the monster");
     return(false);
 }