Ejemplo n.º 1
0
 /// <summary>
 /// Own Functions
 /// </summary>
 private void abilities()
 {
     if (character is Summoner)
     {
         Summoner summoner = character as Summoner;
         if (summoner.Cooldown > 0)
         {
             summoner.Cooldown--;
         }
     }
     if (character is Mage)
     {
         Mage mage = character as Mage;
         if (mage.Mana < 200)
         {
             ProgressBarSpecialAbility.Step = 1;
             ProgressBarSpecialAbility.PerformStep();
             AbilityLabel();
             mage.Mana++;
         }
     }
 }