From 37d0c1b6c82d90767991cb41bda6b2c7bbfcf44d Mon Sep 17 00:00:00 2001 From: notpatchmaybe <104580041+notpatchmaybe@users.noreply.github.com> Date: Sat, 11 May 2024 10:06:52 +0100 Subject: [PATCH] Adjusted priorBoostArray to priorBoost integer Only one values is relevant at a time, so the array was pointless, woops. --- src/data/move.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 4532f36a3f1..a7899727f3d 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1792,12 +1792,12 @@ export class SwapStatsAttr extends MoveEffectAttr { if (!super.apply(user, target, move, args)) return false; //Exits if the move can't apply - let priorBoostArray : integer[] = [ 0, 0, 0, 0, 0, 0, 0 ]; //For storing user stat boosts + let priorBoost : integer; //For storing a stat boost for (let s = 0; s < target.summonData.battleStats.length; s++) { - priorBoostArray[s] = user.summonData.battleStats[s]; //Store user stat boosts - user.summonData.battleStats[s] = target.summonData.battleStats[s]; //Applies target boosts to self - target.summonData.battleStats[s] = priorBoostArray[s]; //Applies stored boosts to target + priorBoost = user.summonData.battleStats[s]; //Store user stat boost + user.summonData.battleStats[s] = target.summonData.battleStats[s]; //Applies target boost to self + target.summonData.battleStats[s] = priorBoost; //Applies stored boost to target } target.updateInfo(); user.updateInfo();