Add parentheses for clarity

This commit is contained in:
NightKev 2024-09-06 04:10:03 -07:00 committed by GitHub
parent c8be84dc60
commit bdd0e8c543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7929,8 +7929,8 @@ export function initMoves() {
const lastPlayerFaint = user.scene.currentBattle.playerFaintsHistory[user.scene.currentBattle.playerFaintsHistory.length -1]; const lastPlayerFaint = user.scene.currentBattle.playerFaintsHistory[user.scene.currentBattle.playerFaintsHistory.length -1];
const lastEnemyFaint = user.scene.currentBattle.enemyFaintsHistory[user.scene.currentBattle.enemyFaintsHistory.length -1]; const lastEnemyFaint = user.scene.currentBattle.enemyFaintsHistory[user.scene.currentBattle.enemyFaintsHistory.length -1];
return ( return (
lastPlayerFaint !== undefined && turn - lastPlayerFaint.turn === 1 && user.isPlayer() || (lastPlayerFaint !== undefined && turn - lastPlayerFaint.turn === 1 && user.isPlayer()) ||
lastEnemyFaint !== undefined && turn - lastEnemyFaint.turn === 1 && !user.isPlayer() (lastEnemyFaint !== undefined && turn - lastEnemyFaint.turn === 1 && !user.isPlayer())
) ? 2 : 1; ) ? 2 : 1;
}), }),
new AttackMove(Moves.FINAL_GAMBIT, Type.FIGHTING, MoveCategory.SPECIAL, -1, 100, 5, -1, 0, 5) new AttackMove(Moves.FINAL_GAMBIT, Type.FIGHTING, MoveCategory.SPECIAL, -1, 100, 5, -1, 0, 5)