Now correct patch version: Use spell_loot_table for item creating in case SPELL_EFFECT_CREATE_ITEM_2 (157) and itemType==0. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
Muhaha
2009-02-06 11:25:04 +01:00
parent e0b3d67c1e
commit 358d1bb14e
5 changed files with 13 additions and 12 deletions

View File

@@ -2738,8 +2738,7 @@ void Spell::EffectCreateItem2(uint32 i)
return;
// create some random items
if(!((Player*)m_caster)->AutoStoreLootItem(m_spellInfo->Id,LootTemplates_Spell))
player->SendEquipError( msg, NULL, NULL );
((Player*)m_caster)->AutoStoreLootItem(m_spellInfo->Id,LootTemplates_Spell);
return;
}
DoCreateItem(i,m_spellInfo->EffectItemType[i]);