From 533841c0a572932eb0795d7d6492c47ecd490d2c Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Sun, 10 May 2015 00:19:28 -0400 Subject: [PATCH] Fixed mobs not taking damage from explosions --- code/game/objects/explosion.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/objects/explosion.dm b/code/game/objects/explosion.dm index 139788890b9..b88f63baab8 100644 --- a/code/game/objects/explosion.dm +++ b/code/game/objects/explosion.dm @@ -93,6 +93,9 @@ proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impa else dist = 0 if(T) + for(var/atom_movable in T.contents) //bypass type checking since only atom/movable can be contained by turfs anyway + var/atom/movable/AM = atom_movable + if(AM) AM.ex_act(dist) // if(flame_dist && prob(40) && !istype(T, /turf/space) && !T.density) // PoolOrNew(/obj/effect/hotspot, T) //Mostly for ambience! if(dist > 0)