mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-14 00:26:02 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user