Skip to content

Commit 19bde75

Browse files
scheiboZarel
authored andcommitted
canZMove should not be set for disabled moves (#5384)
Fixes #5383
1 parent 694cd47 commit 19bde75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ let BattleScripts = {
11031103
/**@type {AnyObject?[]} */
11041104
let zMoves = [];
11051105
for (const moveSlot of pokemon.moveSlots) {
1106-
if (moveSlot.pp <= 0) {
1106+
if (moveSlot.pp <= 0 || moveSlot.disabled) {
11071107
zMoves.push(null);
11081108
continue;
11091109
}

0 commit comments

Comments
 (0)