Refactors roundstart checks slightly
This commit is contained in:
@@ -206,7 +206,7 @@
|
||||
toggle_all_ctf(user)
|
||||
return
|
||||
|
||||
if(SSticker.current_state < GAME_STATE_PLAYING)
|
||||
if(!SSticker.HasRoundStarted())
|
||||
return
|
||||
if(user.ckey in team_members)
|
||||
if(user.ckey in recently_dead_ckeys)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
anchored = 1
|
||||
|
||||
/obj/effect/mob_spawn/attack_ghost(mob/user)
|
||||
if(SSticker.current_state != GAME_STATE_PLAYING || !loc)
|
||||
if(!SSticker.HasRoundStarted() || !loc)
|
||||
return
|
||||
if(!uses)
|
||||
to_chat(user, "<span class='warning'>This spawner is out of charges!</span>")
|
||||
|
||||
Reference in New Issue
Block a user