mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +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;
|
return;
|
||||||
|
|
||||||
// need unequip offhand for 2h-weapon without TitanGrip (in any from hands)
|
// 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;
|
return;
|
||||||
|
|
||||||
ItemPosCountVec off_dest;
|
ItemPosCountVec off_dest;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10573"
|
#define REVISION_NR "10574"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue