From a28a7a4da58bc355ce52c31ae5543dc7fc184fc5 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 2 May 2017 07:44:23 +0100 Subject: [PATCH] Updates to check to ensure they are clowns, not imposters --- code/modules/clothing/under/jobs/civilian.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/clothing/under/jobs/civilian.dm b/code/modules/clothing/under/jobs/civilian.dm index 6ebd5363194..38729fa00b9 100644 --- a/code/modules/clothing/under/jobs/civilian.dm +++ b/code/modules/clothing/under/jobs/civilian.dm @@ -72,7 +72,10 @@ /obj/item/clothing/under/rank/clown/hit_reaction() playsound(loc, 'sound/items/bikehorn.ogg', 50, 1, -1) - score_clownabuse++ + if(ishuman(loc)) + var/mob/living/carbon/human/H = loc + if(H.mind && H.mind.assigned_role == "Clown") + score_clownabuse++ return 0 /obj/item/clothing/under/rank/head_of_personnel