mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
Fix roundstart antags with dynamic. (#30233)
This commit is contained in:
@@ -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
@@ -1 +1 @@
|
||||
extended
|
||||
dynamic
|
||||
|
||||
Reference in New Issue
Block a user