aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-08 21:54:13 -0600
committermegamage <none@none>2009-02-08 21:54:13 -0600
commit2bd90deeedb6282eab9dfce650fbaf2bda451ee8 (patch)
tree26a6af03fd6757b52002e56469a728f75a42abc8 /src/game/SpellEffects.cpp
parent11b9bd42f76db238af914112bdc065fc8293451d (diff)
[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
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index a908db9185c..11af74f7f86 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -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))