[7234] Now correct patch version: Use spell_loot_table for item creating in case SPELL_EFFECT_CREATE_ITEM_2 (157) and itemType==0

This commit is contained in:
VladimirMangos 2009-02-06 06:00:01 +03:00
parent e21941d558
commit cb0ebde926
5 changed files with 12 additions and 10 deletions

View file

@ -2691,8 +2691,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]);