fix failed give message appearing on success (#18894)

This commit is contained in:
SteelSlayer
2022-08-26 13:29:49 -05:00
committed by GitHub
parent 1794938f1d
commit f991ad2c07
+1
View File
@@ -170,6 +170,7 @@
to_chat(giver, "<span class='warning'>[I] stays stuck to your hand when [receiver] tries to take it!</span>")
to_chat(receiver, "<span class='warning'>[I] stays stuck to [giver]'s hand when you try to take it!</span>")
return
UnregisterSignal(I, list(COMSIG_ITEM_EQUIPPED, COMSIG_ITEM_DROPPED)) // We don't want these triggering `cancel_give` at this point, since the give is successful.
giver.unEquip(I)
receiver.put_in_hands(I)
I.add_fingerprint(receiver)