Fix FlipStat applyChallenges inside calculateBaseStats

This commit is contained in:
Scooom 2025-01-14 22:07:40 -06:00
parent 02725694e9
commit ea6d53605d

View File

@ -1057,7 +1057,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
calculateBaseStats(): number[] {
const baseStats = this.getSpeciesForm(true).baseStats.slice(0);
applyChallenges(this.scene.gameMode, ChallengeType.FLIP_STAT, this, baseStats);
applyChallenges(globalScene.gameMode, ChallengeType.FLIP_STAT, this, baseStats);
// Shuckle Juice
globalScene.applyModifiers(PokemonBaseStatTotalModifier, this.isPlayer(), this, baseStats);
// Old Gateau