aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authore@cacaw.net <e@cacaw.net>2012-09-09 23:41:36 +0100
committerNay <dnpd.dd@gmail.com>2012-09-10 00:35:46 +0100
commit7a8652c06f71e430c3cff9667edcbb0335be7cc0 (patch)
treecb872f40734961ea49489cb498aaab0a9096cc7d /src
parent83817afd996af9eedadc366037cc73c83caa8fd0 (diff)
Core/Players: Do not allow polearm to be equipped in the offhand.
Signed-off-by: Nay <dnpd.dd@gmail.com> Closes #7709
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Entities/Player/Player.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index dc3fe6b0f0b..3ad3eb0ddd6 100755
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -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;