Skip to content

Commit

Permalink
Merge pull request #4172 from out-of-phaze/fix/magshield-jam
Browse files Browse the repository at this point in the history
Fix runtime when sabotaging a magnetic field generator with metal rods
  • Loading branch information
MistakeNot4892 authored Jul 9, 2024
2 parents 43fa075 + 75a0e26 commit b49e3bb
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 b49e3bb

Please sign in to comment.