mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-25 15:40:31 -05:00
Encore: End if the target no longer knows the move (#9898)
This commit is contained in:
parent
8e47521d77
commit
f1a8a86e57
|
|
@ -4746,7 +4746,7 @@ export const Moves: {[moveid: string]: MoveData} = {
|
|||
},
|
||||
onResidualOrder: 16,
|
||||
onResidual(target) {
|
||||
if (target.moves.includes(this.effectState.move) &&
|
||||
if (!target.moves.includes(this.effectState.move) ||
|
||||
target.moveSlots[target.moves.indexOf(this.effectState.move)].pp <= 0) {
|
||||
// early termination if you run out of PP
|
||||
target.removeVolatile('encore');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user