mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 16:56:11 +00:00
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);
|
||||
this.scene.applyModifiers(TempBattleStatBoosterModifier, source.isPlayer(), TempBattleStat.CRIT, critLevel);
|
||||
const bonusCrit = new Utils.BooleanHolder(false);
|
||||
if (applyAbAttrs(BonusCritAbAttr, this, null, bonusCrit)) {
|
||||
if (applyAbAttrs(BonusCritAbAttr, source, null, bonusCrit)) {
|
||||
if (bonusCrit.value)
|
||||
critLevel.value += 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user