don't allow retry on battlemaps

This commit is contained in:
Not 2022-09-03 00:42:18 +02:00
parent c150ed6be1
commit c83dc1d070
1 changed files with 6 additions and 0 deletions

View File

@ -374,6 +374,12 @@ end
local function retry(player, ...)
if doyoudare(player) then
-- Verify valid race level
if not (mapheaderinfo[gamemap].typeoflevel & (TOL_SP | TOL_RACE)) then
CONS_Printf(player, "Battle maps are not supported")
return
end
-- Prevents bind crash
if leveltime < 20 then
return