From a851525e832a46d5e69995e869cd5a6d4a3e61f7 Mon Sep 17 00:00:00 2001 From: Poojawa Date: Tue, 9 Oct 2018 07:43:39 -0500 Subject: [PATCH] adds bubble wrap to fragile antags --- code/game/objects/items/cards_ids.dm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/cards_ids.dm b/code/game/objects/items/cards_ids.dm index e4967b494d..84b4346a79 100644 --- a/code/game/objects/items/cards_ids.dm +++ b/code/game/objects/items/cards_ids.dm @@ -95,7 +95,16 @@ var/atom/A = target if(!proximity && prox_check) return - A.emag_act(user) + if(isturf(A)) + return + if(istype(A,/obj/item/storage/lockbox)) + A.emag_act(user) + if(istype(A,/obj/item/storage)) + return + if(!(isobj(A) || issilicon(A) || isbot(A) || isdrone(A))) + return + else + A.emag_act(user) /obj/item/card/emagfake desc = "It's a card with a magnetic strip attached to some circuitry. Closer inspection shows that this card is a poorly made replica, with a \"DonkCo\" logo stamped on the back."