challenge check fix (#25372)

This commit is contained in:
HMBGERDO
2024-05-17 11:59:40 +00:00
committed by GitHub
parent 94b7057989
commit 95b2fcf095
@@ -84,7 +84,7 @@
if(declaring_war)
to_chat(user, "You are already in the process of declaring war! Make your mind up.")
return FALSE
if(length(GLOB.player_list) < CHALLENGE_MIN_PLAYERS)
if(length(get_living_players(exclude_nonhuman = FALSE, exclude_offstation = TRUE)) < CHALLENGE_MIN_PLAYERS)
to_chat(user, "The enemy crew is too small to be worth declaring war on.")
return FALSE
if(!is_admin_level(user.z))