aboutsummaryrefslogtreecommitdiff
path: root/src/game/Item.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-02-26 22:10:29 +0100
committerQAston <none@none>2009-02-26 22:10:29 +0100
commit9772db0903eeb9c035c77f3a85fcf99b789ea3ae (patch)
treee4fd39681883d2a76eb45e7268e319ce34c9d1ed /src/game/Item.cpp
parentf65974c2810b7574bc50caf8f3c591af6c4d345d (diff)
*Fix Lava Lash.
*Fix Seal of Corruption. --HG-- branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r--src/game/Item.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp
index 85df92f998b..ea8d77076eb 100644
--- a/src/game/Item.cpp
+++ b/src/game/Item.cpp
@@ -756,7 +756,12 @@ bool Item::IsFitToSpellRequirements(SpellEntry const* spellInfo) const
if(spellInfo->EquippedItemInventoryTypeMask != 0) // 0 == any inventory type
{
- if((spellInfo->EquippedItemInventoryTypeMask & (1 << proto->InventoryType)) == 0)
+ // Special case - accept weapon type for main and offhand requirements
+ if(proto->InventoryType == INVTYPE_WEAPON &&
+ (spellInfo->EquippedItemInventoryTypeMask & (1 << INVTYPE_WEAPONMAINHAND) ||
+ spellInfo->EquippedItemInventoryTypeMask & (1 << INVTYPE_WEAPONOFFHAND)))
+ return true;
+ else if ((spellInfo->EquippedItemInventoryTypeMask & (1 << proto->InventoryType)) == 0)
return false; // inventory type not present in mask
}