From 3956d0a61d7450226df5572d170a7fd6d8dc5bdd Mon Sep 17 00:00:00 2001 From: aMannus Date: Thu, 30 Nov 2023 00:06:00 +0100 Subject: [PATCH] Fix GBK check --- soh/soh/Enhancements/mods.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/mods.cpp b/soh/soh/Enhancements/mods.cpp index 7df08f648..cb97d32f4 100644 --- a/soh/soh/Enhancements/mods.cpp +++ b/soh/soh/Enhancements/mods.cpp @@ -663,7 +663,7 @@ void RegisterGrantGanonsBossKey() { GameInteractor::Instance->RegisterGameHook([]() { Player* player = GET_PLAYER(gPlayState); // Triforce Hunt needs the check if the player isn't being teleported to the credits scene. - if (!GameInteractor::IsGameplayPaused() && Flags_GetRandomizerInf(RAND_INF_GRANT_GANONS_BOSSKEY) && + if (!GameInteractor::IsGameplayPaused() && IS_RANDO && Flags_GetRandomizerInf(RAND_INF_GRANT_GANONS_BOSSKEY) && gPlayState->sceneLoadFlag != 0x14 && (1 << 0 & gSaveContext.inventory.dungeonItems[SCENE_GANONS_TOWER]) == 0 && player->stateFlags1 != PLAYER_STATE1_INPUT_DISABLED) {