Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Brain-dawg committed Jan 23, 2025
1 parent a796108 commit 924feae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mge/events.nut
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class MGE_Events

local _arena = Arenas[arena_name]
if (arena.State == AS_IDLE && arena.CurrentPlayers.len() == arena.MaxPlayers)
if (!arena.IsUltiduo && !(arena.IsBBall && arena.State == AS_IDLE))
if (!arena.IsUltiduo && !(arena.IsBBall && arena.State == AS_IDLE && arena.IsCustomRuleset))
EntFireByHandle(player, "RunScriptCode", "SetArenaState(self.GetScriptScope().arena_info.name, AS_COUNTDOWN)", COUNTDOWN_START_DELAY, null, null)
else if (arena.IsUltiduo)
{
Expand Down
2 changes: 1 addition & 1 deletion mge/functions.nut
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@
EntFireByHandle(arena.BBall.ground_ball, "Kill", "", -1, null, null)
}

if (arena.IsCustomRuleset)
if ("IsCustomRuleset" in arena && arena.IsCustomRuleset)
{
foreach(p, _ in arena.CurrentPlayers)
{
Expand Down

0 comments on commit 924feae

Please sign in to comment.