From 5bf4230b4d53ed10f8794ae22c07da14049f532f Mon Sep 17 00:00:00 2001 From: mckinlee Date: Mon, 18 Sep 2023 16:07:22 -0400 Subject: [PATCH] Warp Song Check -Now if you do not have a warp song you won't be able to select the empty slot and still teleport. --- soh/soh/Enhancements/randomizer/pausewarp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/soh/soh/Enhancements/randomizer/pausewarp.c b/soh/soh/Enhancements/randomizer/pausewarp.c index 23b35d127..3b24c54f5 100644 --- a/soh/soh/Enhancements/randomizer/pausewarp.c +++ b/soh/soh/Enhancements/randomizer/pausewarp.c @@ -81,6 +81,11 @@ void PauseWarp_Main() { // If 'A' is pressed and the cooldowns are zero, and we're not already warping, initiate the warp if (aButtonPressed && !state.aButtonCooldown && !(state.warpInitiated || state.textboxInitiated || state.inChoosingState)) { int song = play->pauseCtx.cursorPoint[PAUSE_QUEST]; + + // Check if the player has the selected warp song + if (!CHECK_QUEST_ITEM(song)) return; + + // Initiate warp if the song is within the valid range if (song >= QUEST_SONG_MINUET && song <= QUEST_SONG_PRELUDE) InitiateWarp(play, player, song, &state); }