From 360bc5a82aaf486cf807c12383615d6f1e033dde Mon Sep 17 00:00:00 2001 From: 4dplanner <3combined@gmail.com> Date: Wed, 28 Nov 2018 14:19:04 +0000 Subject: [PATCH] prevents spawner kills --- code/game/objects/structures/spawner.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/game/objects/structures/spawner.dm b/code/game/objects/structures/spawner.dm index 9032a80d91b..3cd08e91c0f 100644 --- a/code/game/objects/structures/spawner.dm +++ b/code/game/objects/structures/spawner.dm @@ -18,6 +18,12 @@ . = ..() AddComponent(/datum/component/spawner, mob_types, spawn_time, faction, spawn_text, max_mobs) +/obj/structure/spawner/attack_animal(mob/living/simple_animal/M) + if(faction_check(faction, M.faction, FALSE)&&!M.client) + return + ..() + + /obj/structure/spawner/syndicate name = "warp beacon" icon = 'icons/obj/device.dmi'