Malf humans, and perfectly functioning ais, round three. (#60335)

Fixes mistake made in #59765, that fixed malf humans spawning by making it impossible for any malfunctioning ai to spawn.
That PR used wrong proc, so it always returned TRUE, so the code declined every player candidacy for the antag datum. I changed it for correct proc, and did some basic testing on it.
This commit is contained in:
Kubisopplay
2021-07-20 21:05:07 -03:00
committed by GitHub
parent a9f257785d
commit dc67ea655e
@@ -222,7 +222,8 @@
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) && !job_is_xp_locked(candidate_player.ckey, role))
var/datum/job/job = SSjob.GetJob(role)
if((role in candidate_client.prefs.job_preferences) && !is_banned_from(candidate_player.ckey, role) && !job.required_playtime_remaining(candidate_client))
exclusive_candidate = TRUE
break