globalScene -> this in battle scene class

This commit is contained in:
AJ Fontaine 2025-01-21 17:27:34 -05:00
parent d84b394c17
commit a2f5cfc569

View File

@ -3398,7 +3398,7 @@ export default class BattleScene extends SceneBase {
if (!encounterCandidate) {
return false;
}
if (globalScene.eventManager.getMysteryEncounterTierForEvent(encounterType, encounterCandidate.encounterTier) !== tier) {
if (this.eventManager.getMysteryEncounterTierForEvent(encounterType, encounterCandidate.encounterTier) !== tier) {
return false;
}
const disallowedGameModes = encounterCandidate.disallowedGameModes;