mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[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:
parent
e21941d558
commit
cb0ebde926
5 changed files with 12 additions and 10 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue