mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Fix: Anti-drop causing permanent nodrop items when dropped item picked up by user. (#22747)
* Item dropped while antidrop active no longer nodrop * Switched to or instead of XOR * Combines if statements. --------- Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
@@ -110,10 +110,10 @@
|
||||
|
||||
/obj/item/organ/internal/cyberimp/brain/anti_drop/proc/release_items()
|
||||
active = FALSE
|
||||
if(!l_hand_ignore && (l_hand_obj in owner.contents))
|
||||
l_hand_obj.flags ^= NODROP
|
||||
if(!r_hand_ignore && (r_hand_obj in owner.contents))
|
||||
r_hand_obj.flags ^= NODROP
|
||||
if(!l_hand_ignore && l_hand_obj && (l_hand_obj == owner.l_hand))
|
||||
l_hand_obj.flags &= ~NODROP
|
||||
if(!r_hand_ignore && r_hand_obj && (r_hand_obj == owner.r_hand))
|
||||
r_hand_obj.flags &= ~NODROP
|
||||
|
||||
/obj/item/organ/internal/cyberimp/brain/anti_drop/remove(mob/living/carbon/M, special = 0)
|
||||
if(active)
|
||||
|
||||
Reference in New Issue
Block a user