mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
blitz rod impact fix (#11442)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user