No longer drop items in other hand when one hand is lost (#22462)

Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
Adrer
2023-09-19 11:55:12 +01:00
committed by GitHub
co-authored by Adrer
parent 2f7abf374f
commit 7c238c1d6a
@@ -180,9 +180,9 @@
update_hand_missing()
if(owner.gloves)
owner.unEquip(owner.gloves)
if(owner.l_hand)
if(owner.l_hand && (body_part == HAND_LEFT))
owner.unEquip(owner.l_hand, TRUE)
if(owner.r_hand)
if(owner.r_hand && (body_part == HAND_RIGHT))
owner.unEquip(owner.r_hand, TRUE)
. = ..()