From bdd0e8c5431bfe885b426cbd5fd9dd1601e8c3d9 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Fri, 6 Sep 2024 04:10:03 -0700 Subject: [PATCH] Add parentheses for clarity --- src/data/move.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 81f7483cdfd..c5daf26620f 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -7929,8 +7929,8 @@ export function initMoves() { const lastPlayerFaint = user.scene.currentBattle.playerFaintsHistory[user.scene.currentBattle.playerFaintsHistory.length -1]; const lastEnemyFaint = user.scene.currentBattle.enemyFaintsHistory[user.scene.currentBattle.enemyFaintsHistory.length -1]; return ( - lastPlayerFaint !== undefined && turn - lastPlayerFaint.turn === 1 && user.isPlayer() || - lastEnemyFaint !== undefined && turn - lastEnemyFaint.turn === 1 && !user.isPlayer() + (lastPlayerFaint !== undefined && turn - lastPlayerFaint.turn === 1 && user.isPlayer()) || + (lastEnemyFaint !== undefined && turn - lastEnemyFaint.turn === 1 && !user.isPlayer()) ) ? 2 : 1; }), new AttackMove(Moves.FINAL_GAMBIT, Type.FIGHTING, MoveCategory.SPECIAL, -1, 100, 5, -1, 0, 5)