Probably fixes most of the issue related with dropping/throwing off hand items. (#3199)

Fixes #3172
Fixes #1110
This commit is contained in:
Alberyk
2017-08-01 08:17:29 +03:00
committed by Erki
parent 97ca446538
commit 1319ae8a2e
+1 -1
View File
@@ -133,7 +133,7 @@
/mob/living/carbon/swap_hand()
var/obj/item/item_in_hand = src.get_active_hand()
if(item_in_hand) //this segment checks if the item in your hand is twohanded.
if(istype(item_in_hand,/obj/item/weapon/material/twohanded))
if(istype(item_in_hand,/obj/item/weapon/material/twohanded) || istype(item_in_hand,/obj/item/weapon/gun) || istype(item_in_hand,/obj/item/weapon/pickaxe))
if(item_in_hand:wielded == 1)
usr << "<span class='warning'>Your other hand is too busy holding the [item_in_hand.name]</span>"
return