Fix exploit that Titan's Grip allow to use with it staff/polearm

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-11-01 03:51:09 +01:00
parent 85d7084e85
commit 425597d522
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -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: