Ejemplo n.º 1
0
 public void Recover()
 {
     if (myTurn)
     {
         AniManager.MeHeal();
         myMonster.hp += (10 + myMonster.level) * charged;
         if (charged == 0)
         {
             myMonster.hp += 3;
         }
         if (myMonster.hp > 100)
         {
             myMonster.hp = 100;
         }
         charged = 0;
     }
     else
     {
         AniManager.YouHeal();
         yourMonster.hp += 10 + yourMonster.level;
         if (yourMonster.hp > 100)
         {
             yourMonster.hp = 100;
         }
     }
     ChangeTurn();
 }