Fixes deck of cards bringing up unnecesary prompt when picked up

This commit is contained in:
Heroman3003
2019-04-08 10:49:56 +10:00
parent 70628015e5
commit f65ac4fce9

View File

@@ -254,8 +254,9 @@
return
/obj/item/weapon/deck/verb_pickup(mob/user as mob) // Snowflaked so pick up verb work as intended
if((user == usr && (!( usr.restrained() ) && (!( usr.stat ) && (usr.contents.Find(src) || in_range(src, usr))))))
/obj/item/weapon/deck/verb_pickup() // Snowflaked so pick up verb work as intended
var/mob/user = usr
if((istype(user) && (!( usr.restrained() ) && (!( usr.stat ) && (usr.contents.Find(src) || in_range(src, usr))))))
if(!istype(usr, /mob/living/simple_mob))
if( !usr.get_active_hand() ) //if active hand is empty
var/mob/living/carbon/human/H = user