[10574] Fixed non-weapon offhand equip after my recent commit.

This commit is contained in:
VladimirMangos 2010-10-02 06:28:01 +04:00
parent 321b8a4ae8
commit fa8f9ad522
2 changed files with 3 additions and 2 deletions

View file

@ -20144,7 +20144,8 @@ void Player::AutoUnequipOffhandIfNeed()
return;
// need unequip offhand for 2h-weapon without TitanGrip (in any from hands)
if (CanDualWield() && (CanTitanGrip() || (offItem->GetProto()->InventoryType != INVTYPE_2HWEAPON && !IsTwoHandUsed())))
if ((CanDualWield() || offItem->GetProto()->InventoryType == INVTYPE_SHIELD || offItem->GetProto()->InventoryType == INVTYPE_HOLDABLE) &&
(CanTitanGrip() || (offItem->GetProto()->InventoryType != INVTYPE_2HWEAPON && !IsTwoHandUsed())))
return;
ItemPosCountVec off_dest;