aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/Spell.cpp
diff options
context:
space:
mode:
authorazazel <none@none>2010-08-05 22:08:07 +0600
committerazazel <none@none>2010-08-05 22:08:07 +0600
commit885fc368fdef08dbe3687c0b4c21a6ac09906fed (patch)
treee3cf3ad44f89d442280acddc0d2685b6b02aaafb /src/server/game/Spells/Spell.cpp
parenta042b972ed3361393fe3e7ce4e177073021bcfc9 (diff)
* Implement item limit category (based on changes by VladimirMangos)
* Additional check for HandleAutoBankItemOpcode (thanks to VladimitMangos) * Properly show empty vendor list for empty item list (author: a1ien) * More stricted checks for store operations (thanks to VladimirMangos) * Prevent autostoring of not empty bags (thanks to L1ghtGu4rd) Changes need testing. Please post bugs on our tracker. --HG-- branch : trunk
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r--src/server/game/Spells/Spell.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 521781ba489..cad47652544 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -6116,9 +6116,10 @@ SpellCastResult Spell::CheckItems()
if (msg != EQUIP_ERR_OK)
{
ItemPrototype const *pProto = objmgr.GetItemPrototype(m_spellInfo->EffectItemType[i]);
+ // TODO: Needs review
if (pProto && !(pProto->ItemLimitCategory))
{
- p_caster->SendEquipError(msg, NULL, NULL);
+ p_caster->SendEquipError(msg, NULL, NULL, m_spellInfo->EffectItemType[i]);
return SPELL_FAILED_DONT_REPORT;
}
else
@@ -6149,7 +6150,7 @@ SpellCastResult Spell::CheckItems()
uint8 msg = p_caster->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, m_spellInfo->EffectItemType[i], 1);
if (msg != EQUIP_ERR_OK)
{
- p_caster->SendEquipError(msg, NULL, NULL);
+ p_caster->SendEquipError(msg, NULL, NULL, m_spellInfo->EffectItemType[i]);
return SPELL_FAILED_DONT_REPORT;
}
}