Skip to content

Commit

Permalink
Fix runtime when sabotaging a magnetic field generator with metal rods
Browse files Browse the repository at this point in the history
  • Loading branch information
out-of-phaze committed Jul 6, 2024
1 parent cc929bb commit db6d35d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions maps/away/magshield/magshield.dm
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@
sleep(50)
visible_message(SPAN_DANGER("\The [src] explodes!"))
var/turf/T = get_turf(src)
explosion(T, 2, 3, 4, 10, 1)
empulse(src, heavy_range*2, lighter_range*2, 1)
qdel(src)
explosion(T, 2, 3, 4, 10, 1)
if(!QDELETED(src))
qdel(src)
if(istype(W, /obj/item/mop))
to_chat(user, SPAN_NOTICE("You stick \the [W] into the rotating spokes, and it immediately breaks into tiny pieces."))
qdel(W)
Expand Down

0 comments on commit db6d35d

Please sign in to comment.