Fix putting someone into a machinery with active grab (#24246)

This commit is contained in:
Mikhail Dzianishchyts
2024-02-20 18:42:11 +03:00
committed by GitHub
parent f605c48e44
commit cc0014e401
10 changed files with 21 additions and 9 deletions
@@ -156,6 +156,7 @@
add_attack_logs(user, L, "put into a cryo cell at [COORD(src)].", ATKLOG_ALL)
if(user.pulling == L)
user.stop_pulling()
QDEL_LIST_CONTENTS(L.grabbed_by)
SStgui.update_uis(src)
return TRUE
@@ -157,6 +157,7 @@
user.visible_message("<span class='danger'>[user] stuffs [victim] into [src]!</span>")
else
return
QDEL_LIST_CONTENTS(victim.grabbed_by)
victim.forceMove(src)
occupant = victim
+1
View File
@@ -221,6 +221,7 @@
add_attack_logs(user, target, "Disposal'ed", !!target.ckey ? null : ATKLOG_ALL)
else
return
QDEL_LIST_CONTENTS(target.grabbed_by)
target.forceMove(src)
for(var/mob/C in viewers(src))