Fix Stance Change not working on enemy side

This commit is contained in:
Flashfyre committed 2024-03-31 00:10:47 -04:00
1 parent ca0ae35422
commit 5cb268a3f0
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -273,7 +273,7 @@ export abstract class SpeciesFormChangeMoveTrigger extends SpeciesFormChangeTrig
export class SpeciesFormChangePreMoveTrigger extends SpeciesFormChangeMoveTrigger {
canChange(pokemon: Pokemon): boolean {
const command = pokemon.scene.currentBattle.turnCommands[pokemon.getFieldIndex()];
const command = pokemon.scene.currentBattle.turnCommands[pokemon.getBattlerIndex()];
return command?.move && this.movePredicate(command.move.move) === this.used;
}
}