mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 07:42:25 +02:00
Update src/data/move.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
c986d29133
commit
5eccb1d328
@ -1031,7 +1031,11 @@ export class AttackMove extends Move {
|
|||||||
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 = offStatValue / statHolder.value;
|
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());
|
const power = new Utils.NumberHolder(this.calculateEffectivePower());
|
||||||
applyMoveAttrs(VariablePowerAttr, user, target, move, power);
|
applyMoveAttrs(VariablePowerAttr, user, target, move, power);
|
||||||
|
Loading…
Reference in New Issue
Block a user