From 588f3eebcf175a510133c0aec73ce1d4cf674eb3 Mon Sep 17 00:00:00 2001 From: Tigercat2000 Date: Mon, 29 Jun 2015 14:11:06 -0700 Subject: [PATCH] Sanity-checking for xeno attack hallucination --- code/modules/flufftext/Hallucination.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm index d5c150d6bf7..24a1cb6cc16 100644 --- a/code/modules/flufftext/Hallucination.dm +++ b/code/modules/flufftext/Hallucination.dm @@ -229,17 +229,22 @@ Gunshots/explosions/opening doors/less rare audio (done) if(!U.welded) pump = U break + if(!pump) return 0 xeno = new(pump.loc,target) sleep(10) + if(!xeno) return xeno.update_icon("alienh_leap",'icons/mob/alienleap.dmi',-32,-32) xeno.throw_at(target,7,1) sleep(10) + if(!xeno) return xeno.update_icon("alienh_leap",'icons/mob/alienleap.dmi',-32,-32) xeno.throw_at(pump,7,1) sleep(10) + if(!xeno) return var/xeno_name = xeno.name target << "[xeno_name] begins climbing into the ventilation system..." sleep(10) + if(!xeno) return qdel(xeno) target << "[xeno_name] scrambles into the ventilation ducts!" qdel(src)