Fixes pulse rifles exploding structures in nullspace and that sort of thing (#38931)

* memes

* i just woke up ok
This commit is contained in:
vuonojenmustaturska
2018-07-06 19:41:21 +03:00
committed by letterjay
parent 981743a170
commit f36ab6982b
+1 -1
View File
@@ -90,7 +90,7 @@
/obj/item/projectile/beam/pulse/on_hit(atom/target, blocked = FALSE)
. = ..()
if(isturf(target) || istype(target, /obj/structure/))
if (!QDELETED(target) && (isturf(target) || istype(target, /obj/structure/)))
target.ex_act(EXPLODE_HEAVY)
/obj/item/projectile/beam/pulse/shotgun