[7239] Support multiply items loot and not normal loot items in Player::AutoStoreLoot. Author: VladimirMangos
Use this function in more cases and simplify and fix some related code. --HG-- branch : trunk
This commit is contained in:
1 parent
11b9bd42f7
commit
2bd90deeed
7 files changed
+37
-53
No files matched your search
@@ -2747,7 +2747,7 @@ void Spell::EffectCreateItem2(uint32 i)
|
||||
return;
|
||||
|
||||
// create some random items
|
||||
((Player*)m_caster)->AutoStoreLootItem(m_spellInfo->Id,LootTemplates_Spell);
|
||||
((Player*)m_caster)->AutoStoreLoot(m_spellInfo->Id,LootTemplates_Spell);
|
||||
return;
|
||||
}
|
||||
DoCreateItem(i,m_spellInfo->EffectItemType[i]);
|
||||
@@ -5103,7 +5103,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||
player->DestroyItemCount (reagent_id,count,true);
|
||||
|
||||
// create some random items
|
||||
player->AutoStoreLootItem(m_spellInfo->Id,LootTemplates_Spell);
|
||||
player->AutoStoreLoot(m_spellInfo->Id,LootTemplates_Spell);
|
||||
|
||||
// learn random explicit discovery recipe (if any)
|
||||
if(uint32 discoveredSpell = GetExplicitDiscoverySpell(m_spellInfo->Id, player))
|
||||
|
||||
Reference in new issue
Block a user