From 2305f8551c5ee425b73f5c8e9d45c7f88be2c1da Mon Sep 17 00:00:00 2001 From: Giacomand Date: Fri, 7 Feb 2014 23:26:17 +0000 Subject: [PATCH] The statue will call dust() when gibbed. Increased the range of blind() so mobs just outside his can_be_seen() check won't stop it from blinding them. Added a client check for AI stuff. Conflicts: baystation12.dme --- .../modules/mob/living/simple_animal/hostile/statue.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/statue.dm b/code/modules/mob/living/simple_animal/hostile/statue.dm index 84bda213b37..e39eaa9f51f 100644 --- a/code/modules/mob/living/simple_animal/hostile/statue.dm +++ b/code/modules/mob/living/simple_animal/hostile/statue.dm @@ -71,7 +71,7 @@ /mob/living/simple_animal/hostile/statue/Life() ..() - if(target) // If we have a target + if(!client && target) // If we have a target and we're AI controlled var/mob/watching = can_be_seen() // If they're not our target if(watching && watching != target) @@ -123,6 +123,12 @@ /mob/living/simple_animal/hostile/statue/say() return 0 +// Turn to dust when gibbed + +/mob/living/simple_animal/hostile/statue/gib(var/animation = 0) + dust(animation) + + // Stop attacking clientless mobs /mob/living/simple_animal/hostile/statue/CanAttack(var/atom/the_target) @@ -157,7 +163,7 @@ charge_max = 800 clothes_req = 0 - range = 7 + range = 8 /obj/effect/proc_holder/spell/aoe_turf/blindness/cast(list/targets) for(var/turf/T in targets)