Fix roundstart antags with dynamic. (#30233)

This commit is contained in:
Charlie Nolan
2025-08-23 09:37:54 -07:00
committed by GitHub
parent bf750135d0
commit dee7f063c1
2 changed files with 5 additions and 2 deletions
@@ -112,7 +112,10 @@
return antag_cost * antag_amount // shitty refund for now
/datum/ruleset/proc/roundstart_can_apply(datum/mind/antag)
if(EXCLUSIVE_OR(antag.current.client.prefs.active_character.species in banned_species, banned_species_only))
var/client/antag_client = GLOB.directory[ckey(antag.key)]
if(!antag_client)
CRASH("Null client for key [antag.key] during dynamic antag assignment.")
if(EXCLUSIVE_OR(antag_client.prefs.active_character.species in banned_species, banned_species_only))
SEND_SIGNAL(src, COMSIG_RULESET_FAILED_SPECIES)
return FALSE
if(antag.special_role) // You can only have 1 antag roll at a time, sorry
+1 -1
View File
@@ -1 +1 @@
extended
dynamic