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 committed 2009-02-06 11:25:04 +01:00
1 parent e0b3d67c1e
commit 358d1bb14e
5 files changed
+13 -12

No files matched your search

+1 -2
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]);