Use getBattleStat instead of getStat in BattleStatRatioPowerAttr

pull/742/head
Jakub Hanko 2024-05-11 16:03:35 +02:00
parent 28c75e4377
commit 7660b244c9
No known key found for this signature in database
GPG Key ID: 775D427937A306CC
1 changed files with 1 additions and 1 deletions

View File

@ -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 ];