mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[10574] Fixed non-weapon offhand equip after my recent commit.
This commit is contained in:
parent
321b8a4ae8
commit
fa8f9ad522
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue