mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7239] Support multiply items loot and not normal loot items in Player::AutoStoreLoot.
Use this function in more cases and simplify and fix some related code.
This commit is contained in:
parent
7d63f4ce02
commit
5e2553ff7e
7 changed files with 36 additions and 53 deletions
|
|
@ -2691,7 +2691,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]);
|
||||
|
|
@ -4922,7 +4922,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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue