Ejemplo n.º 1
0
 internal static void AttackTarget(this Charakter charakter, Charakter target)
 {
     if (ActionHandler.CheckForAttack(charakter))
     {
         if (checkForHit(charakter, target.ArmourClass))
         {
             DealDamage(charakter, target, charakter.Damage);
         }
         else
         {
             Console.WriteLine(String.Format("{0} missed with his attack.", charakter.Name));
         }
     }
 }