blitz rod impact fix (#11442)

This commit is contained in:
Will
2025-08-16 07:48:43 -04:00
committed by GitHub
parent 5e46cc9283
commit cc31400f93

View File

@@ -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)