Merge pull request #7979 from VOREStation/upstream-merge-7195

[MIRROR] Fixes runtime in antagonist_helpers.dm, line 15
This commit is contained in:
Aronai Sieyes
2020-05-20 15:47:41 -04:00
committed by GitHub

View File

@@ -12,8 +12,12 @@
return FALSE return FALSE
if(avoid_silicons) if(avoid_silicons)
var/datum/job/J = SSjob.get_job(player.assigned_role) var/datum/job/J = SSjob.get_job(player.assigned_role)
if(J.mob_type & JOB_SILICON) if(J)
return FALSE if(J.mob_type & JOB_SILICON)
return FALSE
else // If SSjob couldn't find a job, they don't have one yet, so the next best thing we can switch on are job preferences
if((player.current.client.prefs.job_engsec_high | player.current.client.prefs.job_engsec_med | player.current.client.prefs.job_engsec_low) & (AI | CYBORG)) // If they have ANY chance of being silicon
return FALSE
return TRUE return TRUE
/datum/antagonist/proc/antags_are_dead() /datum/antagonist/proc/antags_are_dead()