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