Make sure crafting spells with non-random loot are not allowed to be casted if inventory is full. Fixes issue #2791

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-08-28 02:20:26 +03:00
parent e3b92f9630
commit f89a27dc98
+1
View File
@@ -6196,6 +6196,7 @@ SpellCastResult Spell::CheckItems()
switch (m_spellInfo->Effect[i]) switch (m_spellInfo->Effect[i])
{ {
case SPELL_EFFECT_CREATE_ITEM: case SPELL_EFFECT_CREATE_ITEM:
case SPELL_EFFECT_CREATE_ITEM_2:
{ {
if (!m_IsTriggeredSpell && m_spellInfo->EffectItemType[i]) if (!m_IsTriggeredSpell && m_spellInfo->EffectItemType[i])
{ {