aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShocker <none@none>2010-08-28 02:20:26 +0300
committerShocker <none@none>2010-08-28 02:20:26 +0300
commitf89a27dc98901cca611f4f5249a8fcd64ceb664f (patch)
tree64a9765420828cab9123631f8fcf46daf6f1bd33 /src
parente3b92f9630106570784aa84efba08a1fcd0770c6 (diff)
Make sure crafting spells with non-random loot are not allowed to be casted if inventory is full. Fixes issue #2791
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 7d805b710e8..18006c55ab2 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -6196,6 +6196,7 @@ SpellCastResult Spell::CheckItems()
switch (m_spellInfo->Effect[i])
{
case SPELL_EFFECT_CREATE_ITEM:
+ case SPELL_EFFECT_CREATE_ITEM_2:
{
if (!m_IsTriggeredSpell && m_spellInfo->EffectItemType[i])
{