Disable give to self (#19411)

Adds a check to make sure the target of help intent passing isn't the same person. This was preventing the interaction of tossing items and held mobs at yourself to initiate spont vore.
This commit is contained in:
Eli
2026-04-14 03:34:47 +10:00
committed by GitHub
parent 56407ded46
commit 58bc5dc7f4
+1 -1
View File
@@ -1332,7 +1332,7 @@
return FALSE //Grab processing has a chance of returning null
// Help intent + Adjacent = pass item to other
if(a_intent == I_HELP && Adjacent(target) && isitem(item) && ishuman(target))
if(a_intent == I_HELP && Adjacent(target) && isitem(item) && ishuman(target) && target != src)
var/obj/item/I = item
var/mob/living/carbon/human/H = target
if(H.in_throw_mode && H.a_intent == I_HELP && unEquip(I))