Merge pull request #13777 from Heroman3003/teleport-runtime

Fixes teleport artifact not unbuckling mobs properly
This commit is contained in:
Casey
2022-09-23 00:57:47 +00:00
committed by CHOMPStation2
parent 267b821389
commit 0727c30768
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -316,7 +316,7 @@
/obj/machinery/power/rtg/reg/unbuckle_mob(mob/living/buckled_mob, force = FALSE)
. = ..()
buckled_mob.pixel_y = initial(buckled_mob.pixel_y)
buckled_mob.pixel_y = buckled_mob.default_pixel_y
/obj/machinery/power/rtg/reg/RefreshParts()
var/n = 0
@@ -31,7 +31,7 @@
if(prob(100 * weakness))
to_chat(M, "<font color='red'>You are displaced by a strange force!</font>")
if(M.buckled)
M.buckled.unbuckle_mob()
M.buckled.unbuckle_mob(M)
var/datum/effect/effect/system/spark_spread/sparks = new /datum/effect/effect/system/spark_spread()
sparks.set_up(3, 0, get_turf(M))