Пример #1
0
 /// <summary>Returns True if the Pokémon is only able to use <see cref="PBEMove.Struggle"/>, False otherwise.</summary>
 public bool IsForcedToStruggle()
 {
     if (TempLockedMove != PBEMove.None) // Temp locked moves deduct PP on the first turn and don't on the second, so having a temp locked move means it is supposed to be used again for the second turn
     {
         return(false);
     }
     else if ((ChoiceLockedMove != PBEMove.None && Moves[ChoiceLockedMove].PP == 0) || // If the choice locked move has 0 pp, it is forced to struggle
              Moves.All(s => s.PP == 0) // If all moves have 0 pp, then the user is forced to struggle
              )
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }