Dynamic can no longer creates malf AI humans 2: Electric Boogaloo (#59765)

* Update dynamic_rulesets.dm

* spacing is cool guys
This commit is contained in:
YakumoChen
2021-06-23 11:50:43 -07:00
committed by GitHub
parent d42bf33df6
commit 4fa7d045db
@@ -218,11 +218,11 @@
continue
// If this ruleset has exclusive_roles set, we want to only consider players who have those
// job prefs enabled and aren't role banned from that job. Otherwise, continue as before.
// job prefs enabled and are eligible to play that job. Otherwise, continue as before.
if(length(exclusive_roles))
var/exclusive_candidate = FALSE
for(var/role in exclusive_roles)
if((role in candidate_client.prefs.job_preferences) && !is_banned_from(candidate_player.ckey, role))
if((role in candidate_client.prefs.job_preferences) && !is_banned_from(candidate_player.ckey, role) && !job_is_xp_locked(candidate_player.ckey, role))
exclusive_candidate = TRUE
break