From ffe2b5f27a0cbfd429f11e24c2527f1b4bed1514 Mon Sep 17 00:00:00 2001 From: Birdtalon Date: Sat, 22 Sep 2018 17:50:24 +0100 Subject: [PATCH] adds additional check for protected jobs in one-click-antag --- code/modules/admin/verbs/one_click_antag.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/one_click_antag.dm b/code/modules/admin/verbs/one_click_antag.dm index 5c8e1c77745..230fbb6555c 100644 --- a/code/modules/admin/verbs/one_click_antag.dm +++ b/code/modules/admin/verbs/one_click_antag.dm @@ -32,7 +32,7 @@ client/proc/one_click_antag() if(M.stat || !M.mind || M.mind.special_role) return FALSE if(temp) - if(M.mind.assigned_role in temp.restricted_jobs || M.client.prefs.species in temp.protected_species) + if(M.mind.assigned_role in temp.restricted_jobs || M.mind.assigned_role in temp.protected_jobs || M.client.prefs.species in temp.protected_species) return FALSE if(role) // Don't even bother evaluating if there's no role if(player_old_enough_antag(M.client,role) && (role in M.client.prefs.be_special) && (!jobban_isbanned(M, role)))