reject browser in battle

This commit is contained in:
Not 2022-08-31 18:49:47 +02:00
parent ec12485c43
commit 407d65b44d
1 changed files with 5 additions and 0 deletions

View File

@ -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