From 06e3bcef7cd1d8b93a923df68cd0b9fcb2eaa4cc Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Wed, 12 Jun 2024 23:02:09 +0200 Subject: [PATCH] Mtn v3 - fix spectate bug during final battle --- maps/mountain_fortress_v3/gui.lua | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/maps/mountain_fortress_v3/gui.lua b/maps/mountain_fortress_v3/gui.lua index 05f7e2fdc..a7943d9aa 100644 --- a/maps/mountain_fortress_v3/gui.lua +++ b/maps/mountain_fortress_v3/gui.lua @@ -677,16 +677,12 @@ Gui.on_click( end local player = event.player - if not player or not player.valid then - return - end - - if Public.get('final_battle') then - return player.print('Not possible during the final battle.', Color.warning) - end - - if player.character and player.character.valid then - local success = Public.set_player_to_spectator(player) + if not player or not player.valid then + return + end + + if player.character and player.character.valid then + local success = Public.set_player_to_spectator(player) if success then hide_all_gui(player) end