mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-19 21:48:23 -05:00
Make sure hasValidMove is calculated correctly
This commit is contained in:
parent
c5e25f3a9d
commit
a65720c8d8
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user