From cc31400f936f08e7c830a381f6707d9afdb2f9e5 Mon Sep 17 00:00:00 2001 From: Will <7099514+Willburd@users.noreply.github.com> Date: Sat, 16 Aug 2025 07:48:43 -0400 Subject: [PATCH] blitz rod impact fix (#11442) --- .../projectiles/projectile/magnetic_ch.dm | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/code/modules/projectiles/projectile/magnetic_ch.dm b/code/modules/projectiles/projectile/magnetic_ch.dm index 46bf4e6042..2c45c0b88d 100644 --- a/code/modules/projectiles/projectile/magnetic_ch.dm +++ b/code/modules/projectiles/projectile/magnetic_ch.dm @@ -26,10 +26,15 @@ hud_state = "rocket_thermobaric" /obj/item/projectile/bullet/magnetic/fuelrod/blitz/on_impact(var/atom/A) - if(src.loc) - var/mob/living/M = A - if(istype(M) && M.maxHealth<=200) - M.dust() - visible_message(span_warning("\The [src] impacts energetically with its target and shatters in a violent explosion!")) - explosion(src.loc, 3, 4, 5, 10) + if(isturf(loc)) + explosion(loc, 3, 4, 5, 10) ..(A) + +/obj/item/projectile/bullet/magnetic/fuelrod/blitz/on_hit(atom/target, blocked = 0, def_zone) + var/mob/living/M = target + if(istype(M) && M.maxHealth<=200) + M.dust() + if(isturf(loc)) + explosion(loc, 3, 4, 5, 10) + visible_message(span_warning("\The [src] impacts energetically with its target and shatters in a violent explosion!")) + ..(target, blocked, def_zone)