From f63d33eafdde3cd7a8f7ad7f753d493f9e11d715 Mon Sep 17 00:00:00 2001 From: Atermonera Date: Wed, 6 Apr 2022 16:35:22 -0800 Subject: [PATCH] Update code/game/objects/items/weapons/explosives.dm Co-authored-by: Spookerton --- code/game/objects/items/weapons/explosives.dm | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/code/game/objects/items/weapons/explosives.dm b/code/game/objects/items/weapons/explosives.dm index a5e647547e..bd24c3c366 100644 --- a/code/game/objects/items/weapons/explosives.dm +++ b/code/game/objects/items/weapons/explosives.dm @@ -83,15 +83,10 @@ if(!target) target = src - var/turf/T = null - if(isturf(get_turf(target)) - T = get_turf(target) - if(LAZYLEN(location) == 3) + var/turf/T = get_turf(target) + if (!T && length(location)) T = locate(location[1], location[2], location[3]) - else - T = get_turf(target) - - if(isturf(T)) + if (T) explosion(T, blast_dev, blast_heavy, blast_light, blast_flash) if(target)