mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 08:11:11 +01:00
Merge pull request #13777 from Heroman3003/teleport-runtime
Fixes teleport artifact not unbuckling mobs properly
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user