[MIRROR] Fixes some runtimes [IDB IGNORE] (#10322)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-03-06 23:22:26 +01:00
committed by GitHub
co-authored by Cameron Lennox Kashargul
parent 831b0eadab
commit 53764daffa
13 changed files with 88 additions and 57 deletions
+1 -1
View File
@@ -68,7 +68,7 @@
/obj/item/deck/attack_hand(mob/user as mob)
var/mob/living/carbon/human/H = user
if(istype(src.loc, /obj/item/storage) || src == H.r_store || src == H.l_store || src.loc == user) // so objects can be removed from storage containers or pockets. also added a catch-all, so if it's in the mob you'll pick it up.
if(ishuman(H) && (istype(src.loc, /obj/item/storage) || src == H.r_store || src == H.l_store || src.loc == user)) // so objects can be removed from storage containers or pockets. also added a catch-all, so if it's in the mob you'll pick it up. Human only, however!
..()
else // but if they're not, or are in your hands, you can still draw cards.
draw_card()