From a2a4480e1bd4094c44e3dd83ec4158a577f59154 Mon Sep 17 00:00:00 2001 From: KorPhaeron Date: Fri, 3 Jun 2016 09:49:29 -0500 Subject: [PATCH] Fixes lava staff being used through walls --- .../mob/living/simple_animal/hostile/megafauna/dragon.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/dragon.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/dragon.dm index 18f78c4748716..957fa28131d46 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/dragon.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/dragon.dm @@ -382,7 +382,7 @@ ..() if(lava_cooldown > world.time) return - if(target && istype(target, /turf/open)) + if(target && istype(target, /turf/open) && target in view(7,user)) var/turf/open/O = target user.visible_message("[user] turns \the [O] into lava!") O.ChangeTurf(/turf/open/floor/plating/lava/smooth)