mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 07:42:25 +02:00
Fix improper stat ratio.
This commit is contained in:
parent
7e8abced22
commit
2a8c9e4af5
@ -1030,7 +1030,7 @@ export class AttackMove extends Move {
|
|||||||
const statHolder = new Utils.NumberHolder(user.getEffectiveStat(thisStat, target));
|
const statHolder = new Utils.NumberHolder(user.getEffectiveStat(thisStat, target));
|
||||||
const offStatValue = user.getEffectiveStat(offStat, target);
|
const offStatValue = user.getEffectiveStat(offStat, target);
|
||||||
applyMoveAttrs(VariableAtkAttr, user, target, move, statHolder);
|
applyMoveAttrs(VariableAtkAttr, user, target, move, statHolder);
|
||||||
const statRatio = statHolder.value / offStatValue;
|
const statRatio = offStatValue / statHolder.value;
|
||||||
attackScore *= statRatio <= 0.75 ? 2 : statRatio <= 0.875 ? 1.5 : 1;
|
attackScore *= statRatio <= 0.75 ? 2 : statRatio <= 0.875 ? 1.5 : 1;
|
||||||
|
|
||||||
const power = new Utils.NumberHolder(this.calculateEffectivePower());
|
const power = new Utils.NumberHolder(this.calculateEffectivePower());
|
||||||
|
Loading…
Reference in New Issue
Block a user