From 407d65b44dffe693a93cd5c12affbb5fefe55ac3 Mon Sep 17 00:00:00 2001 From: Not Date: Wed, 31 Aug 2022 18:49:47 +0200 Subject: [PATCH] reject browser in battle --- leaderboard.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/leaderboard.lua b/leaderboard.lua index 6fccf13..1f91836 100644 --- a/leaderboard.lua +++ b/leaderboard.lua @@ -402,6 +402,11 @@ local BrowserController local function initBrowser(player) if not doyoudare(player) then return end + -- TODO: allow in battle + if mapheaderinfo[gamemap].typeoflevel & TOL_MATCH then + CONS_Printf(player, "Please exit battle first") + return + end if not DrawBrowser then DrawBrowser = rawget(_G, "DrawBrowser") if not DrawBrowser then