From 5eccb1d3287e93d15465e312e302d0e8273d5e9c Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Tue, 25 Feb 2025 00:16:53 -0600 Subject: [PATCH] Update src/data/move.ts Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/data/move.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index 7d91a6b3963..e0fdaa706ed 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1031,7 +1031,11 @@ export class AttackMove extends Move { const offStatValue = user.getEffectiveStat(offStat, target); applyMoveAttrs(VariableAtkAttr, user, target, move, statHolder); const statRatio = offStatValue / statHolder.value; - attackScore *= statRatio <= 0.75 ? 2 : statRatio <= 0.875 ? 1.5 : 1; + if (statRatio <= 0.75) { + attackScore *= 2; + } else if (statRatio <= 0.875) { + attackScore *= 1.5; + } const power = new Utils.NumberHolder(this.calculateEffectivePower()); applyMoveAttrs(VariablePowerAttr, user, target, move, power);