Make sure hasValidMove is calculated correctly

This commit is contained in:
Guangcong Luo 2012-08-13 13:54:36 -07:00
parent c5e25f3a9d
commit a65720c8d8

View File

@ -423,7 +423,7 @@ function BattlePokemon(set, side) {
}
if (selfP.disabledMoves[move.id] || !move.pp) {
move.disabled = true;
} else {
} else if (!move.disabled) {
hasValidMove = true;
}
moves.push(move);