From dae64db8f75d3f837f93b8b8e062c974f0d7fef2 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Tue, 19 Nov 2024 03:58:45 -0800 Subject: [PATCH] Return `isNullOrUndefined()` instead of `if` chain Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com> --- src/data/ability.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index a481d08681c..0c5c99f959c 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -5781,11 +5781,7 @@ export function initAbilities() { new Ability(Abilities.ANALYTIC, 5) .attr(MovePowerBoostAbAttr, (user, target, move) => { const movePhase = user?.scene.findPhase((phase) => phase instanceof MovePhase && phase.pokemon.id !== user.id); - if (movePhase) { - return false; - } else { - return true; - } + return Utils.isNullOrUndefined(movePhase); }, 1.3), new Ability(Abilities.ILLUSION, 5) .attr(UncopiableAbilityAbAttr)