From 9eec2c3e3a2c4f4392146b99c1e0bc9f26fe8154 Mon Sep 17 00:00:00 2001 From: Reldnahc Date: Sat, 4 May 2024 16:12:00 -0500 Subject: [PATCH] change target of phase also, check conditions using the bouncer. --- src/phases.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index cc395565d..05bbb4913 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2415,8 +2415,9 @@ export class MoveEffectPhase extends PokemonPhase { this.scene.queueMessage(getPokemonMessage(targets[0], '\nbounced the move back!')); const tempTargets = targets; targets = [user]; + this.targets = [user.getBattlerIndex()]; user = tempTargets[0]; - if (!this.move.getMove().applyConditions(targets[0], targets[0], this.move.getMove())) { + if (!this.move.getMove().applyConditions(user, targets[0], this.move.getMove())) { this.scene.queueMessage(i18next.t('menu:attackFailed')); return this.end(); }