From eb77927d4be7aeafd1e1163572f4b27cc2be5b17 Mon Sep 17 00:00:00 2001 From: flx-sta <50131232+flx-sta@users.noreply.github.com> Date: Thu, 27 Jun 2024 06:54:36 -0700 Subject: [PATCH] [Bug] Fix Tidy-Up boosting stats multiple times right now (#2652) only apply if user id equals target id. This is necessary because of the which is necessary for clearing the arena traps --- src/data/move.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index cf2824da5b4..3ed081ca806 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -8282,7 +8282,7 @@ export function initMoves() { .attr(ForceSwitchOutAttr, true, false) .target(MoveTarget.BOTH_SIDES), new SelfStatusMove(Moves.TIDY_UP, Type.NORMAL, -1, 10, -1, 0, 9) - .attr(StatChangeAttr, [ BattleStat.ATK, BattleStat.SPD ], 1, true, null, true, true) + .attr(StatChangeAttr, [ BattleStat.ATK, BattleStat.SPD ], 1, true, ({ id }, target) => id === target.id, true, true) .attr(RemoveArenaTrapAttr) .target(MoveTarget.BOTH_SIDES), new StatusMove(Moves.SNOWSCAPE, Type.ICE, -1, 10, -1, 0, 9)