Update command-phase.ts

This commit is contained in:
Mumble 2024-11-06 21:35:57 -08:00 committed by GitHub
parent a0d56d6958
commit f1d9dea074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,8 +63,8 @@ export class CommandPhase extends FieldPhase {
// Checks if the Pokemon is under the effects of Encore. If so, Encore can end early if the encored move has no more PP.
const encoreTag = this.getPokemon().getTag(BattlerTagType.ENCORE) as EncoreTag;
if (encoreTag && !encoreTag.lapse(this.getPokemon(), BattlerTagLapseType.CUSTOM)) {
this.getPokemon().removeTag(BattlerTagType.ENCORE);
if (encoreTag) {
this.getPokemon().lapseTag(BattlerTagType.ENCORE);
}
if (this.scene.currentBattle.turnCommands[this.fieldIndex]?.skip) {