From 1de1086fd3cb7ec6b48faef4631967d95dcd569c Mon Sep 17 00:00:00 2001 From: MysterD Date: Fri, 25 Mar 2022 23:27:58 -0700 Subject: [PATCH] Hide-and-seek: only update last seeker index when the round is active --- mods/hide-and-seek.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/hide-and-seek.lua b/mods/hide-and-seek.lua index 93022c97..629015d6 100644 --- a/mods/hide-and-seek.lua +++ b/mods/hide-and-seek.lua @@ -457,7 +457,9 @@ function on_seeking_changed(tag, oldVal, newVal) play_sound(SOUND_OBJ_BOWSER_LAUGH, m.marioObj.header.gfx.cameraToObject) playerColor = network_get_player_text_color_string(m.playerIndex) djui_popup_create(playerColor .. np.name .. '\\#ffa0a0\\ is now a seeker', 2) - sLastSeekerIndex = m.playerIndex + if gGlobalSyncTable.roundState == ROUND_STATE_ACTIVE then + sLastSeekerIndex = m.playerIndex + end sRoundTimer = 0 end