Fix Super Luck working on the wrong side
This commit is contained in:
parent
8932a0b6f9
commit
669bc367e5
|
@ -1186,7 +1186,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
applyMoveAttrs(HighCritAttr, source, this, move, critLevel);
|
applyMoveAttrs(HighCritAttr, source, this, move, critLevel);
|
||||||
this.scene.applyModifiers(TempBattleStatBoosterModifier, source.isPlayer(), TempBattleStat.CRIT, critLevel);
|
this.scene.applyModifiers(TempBattleStatBoosterModifier, source.isPlayer(), TempBattleStat.CRIT, critLevel);
|
||||||
const bonusCrit = new Utils.BooleanHolder(false);
|
const bonusCrit = new Utils.BooleanHolder(false);
|
||||||
if (applyAbAttrs(BonusCritAbAttr, this, null, bonusCrit)) {
|
if (applyAbAttrs(BonusCritAbAttr, source, null, bonusCrit)) {
|
||||||
if (bonusCrit.value)
|
if (bonusCrit.value)
|
||||||
critLevel.value += 1;
|
critLevel.value += 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue