[Bug] Charging moves no longer fail on last PP (#6867)

This commit is contained in:
Fabi 2025-12-20 00:26:21 +01:00 committed by GitHub
parent e501a29942
commit 0cc3d2c566
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -906,7 +906,7 @@ export class MovePhase extends PokemonPhase {
this.pokemon.getBattlerIndex(),
this.targets[0],
this.move,
this.useMode,
this.useMode === MoveUseMode.NORMAL ? MoveUseMode.IGNORE_PP : this.useMode,
);
}