Core/Players: Do not allow polearm to be equipped in the offhand.
Signed-off-by: Nay <dnpd.dd@gmail.com> Closes #7709
This commit is contained in:
1 parent
83817afd99
commit
7a8652c06f
1 file changed
+5
-1
@@ -11531,7 +11531,11 @@ InventoryResult Player::CanEquipItem(uint8 slot, uint16 &dest, Item* pItem, bool
|
||||
|
||||
if (eslot == EQUIPMENT_SLOT_OFFHAND)
|
||||
{
|
||||
if (type == INVTYPE_WEAPON || type == INVTYPE_WEAPONOFFHAND)
|
||||
// Do not allow polearm to be equipped in the offhand (rare case for the only 1h polearm 41750)
|
||||
if (pProto->SubClass == ITEM_SUBCLASS_WEAPON_POLEARM)
|
||||
return EQUIP_ERR_ITEM_DOESNT_GO_TO_SLOT;
|
||||
|
||||
else if (type == INVTYPE_WEAPON || type == INVTYPE_WEAPONOFFHAND)
|
||||
{
|
||||
if (!CanDualWield())
|
||||
return EQUIP_ERR_CANT_DUAL_WIELD;
|
||||
|
||||
Reference in new issue
Block a user