From 669bc367e5d003919616e242e78290e8e532fbbf Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 14 Apr 2024 18:19:35 -0400 Subject: [PATCH] Fix Super Luck working on the wrong side --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index c396ca37b..f7832d612 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -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; }