diff options
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
| -rw-r--r-- | src/server/game/Spells/Spell.cpp | 5 | 
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;                      }                  }  | 
