Merge pull request #4088 from tigercat2000/offhands

Add inactive hand to carbon get_access
This commit is contained in:
Fox McCloud
2016-04-04 17:19:09 -04:00
+7 -3
View File
@@ -889,6 +889,10 @@ so that different stomachs can handle things in different ways VB*/
/mob/living/carbon/get_access()
. = ..()
var/obj/item/I = get_active_hand()
if(I)
. |= I.GetAccess()
var/obj/item/RH = get_active_hand()
if(RH)
. |= RH.GetAccess()
var/obj/item/LH = get_inactive_hand()
if(LH)
. |= LH.GetAccess()