From 152cee0e0f0fbd2eb7f73d3aa801d3f4b9d03243 Mon Sep 17 00:00:00 2001 From: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Date: Tue, 5 Oct 2021 07:17:25 -0400 Subject: [PATCH] Update swarmer_objs.dm (#61877) If you are banned from an antag, but no ghosts take your body, you get to stay in your body. This means that someone banned from Swarmer can keep trying to join as a Swarmer and hope no one will take over their body, to bypass their ban. To prevent this, banned people won't be able to form a swarmer body in the first place. --- code/modules/swarmers/swarmer_objs.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/swarmers/swarmer_objs.dm b/code/modules/swarmers/swarmer_objs.dm index 1737ae41a30..89085841fa6 100644 --- a/code/modules/swarmers/swarmer_objs.dm +++ b/code/modules/swarmers/swarmer_objs.dm @@ -63,7 +63,10 @@ /obj/structure/swarmer_beacon/attack_ghost(mob/user) . = ..() if(processing_swarmer) - to_chat(user, "A swarmer is currently being created. Try again soon.") + to_chat(user, "A swarmer is currently being created. Try again soon.") + return + if(is_banned_from(user.ckey, ROLE_SWARMER)) + to_chat(user, span_danger("You are banned from playing as a Swarmer.")) return que_swarmer(user)