Make *flip keep better track of who's buckled. (#31194)

This commit is contained in:
Alan
2025-12-08 18:55:17 -05:00
committed by GitHub
parent c0ae9560e9
commit 445f0ea8dd
+2 -1
View File
@@ -145,7 +145,8 @@
var/obj/item/grab/G = H.get_active_hand()
if(G && G.affecting)
if(H.buckled || G.affecting.buckled)
to_chat(user, "<span class='warning'>[G.affecting] is buckled, you can't flip around [G.affecting.p_them()]!</span>")
var/who_is = H.buckled ? "You are" : "[G.affecting] is"
to_chat(user, "<span class='warning'>[who_is] buckled, you can't flip around [G.affecting.p_them()]!</span>")
return TRUE
var/turf/oldloc = user.loc
var/turf/newloc = G.affecting.loc