From 7660b244c9eac152e359acd9e18be3e81bd8e084 Mon Sep 17 00:00:00 2001 From: Jakub Hanko <60473007+JakubHanko@users.noreply.github.com> Date: Sat, 11 May 2024 16:03:35 +0200 Subject: [PATCH] Use getBattleStat instead of getStat in BattleStatRatioPowerAttr --- src/data/move.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index cada55e64..446b639f5 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1928,7 +1928,7 @@ export class BattleStatRatioPowerAttr extends VariablePowerAttr { apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { const power = args[0] as Utils.NumberHolder; - const statRatio = target.getStat(this.stat) / user.getStat(this.stat); + const statRatio = target.getBattleStat(this.stat) / user.getBattleStat(this.stat); const statThresholds = [ 0.25, 1 / 3, 0.5, 1, -1 ]; let statThresholdPowers = [ 150, 120, 80, 60, 40 ];