aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorKudlaty <none@none>2009-11-01 03:51:09 +0100
committerKudlaty <none@none>2009-11-01 03:51:09 +0100
commit425597d522284557279556f12d2f3d9834b3a346 (patch)
tree2937eb24a7c1c749f28013d1e3e7406a5b46ba8a /src/game/Player.cpp
parent85d7084e85c1779201b025887c45c5d46e38038f (diff)
Fix exploit that Titan's Grip allow to use with it staff/polearm
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 5733abb630d..166bf33d26f 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -8781,7 +8781,7 @@ uint8 Player::FindEquipSlot( ItemPrototype const* proto, uint32 slot, bool swap
break;
case INVTYPE_2HWEAPON:
slots[0] = EQUIPMENT_SLOT_MAINHAND;
- if (CanDualWield() && CanTitanGrip())
+ if (CanDualWield() && CanTitanGrip() && proto && proto->SubClass != ITEM_SUBCLASS_WEAPON_POLEARM && proto->SubClass != ITEM_SUBCLASS_WEAPON_STAFF)
slots[1] = EQUIPMENT_SLOT_OFFHAND;
break;
case INVTYPE_TABARD: