[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
This commit is contained in:
flx-sta 2024-06-27 06:54:36 -07:00 committed by GitHub
parent b9fd4273c9
commit eb77927d4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)