aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 33f1fdbc66a..279e8c5e546 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -2203,7 +2203,6 @@ void SpellMgr::LoadSpellInfoStore()
std::unordered_map<uint32, SpellEffectEntryMap> effectsBySpell;
std::unordered_map<uint32, SpellVisualMap> visualsBySpell;
- std::unordered_map<uint32, SpellEffectScalingEntry const*> spellEffectScallingByEffectId;
for (SpellEffectEntry const* effect : sSpellEffectStore)
{
@@ -2242,9 +2241,6 @@ void SpellMgr::LoadSpellInfoStore()
if (!cooldowns->DifficultyID) // TODO: implement
loadData[cooldowns->SpellID].Cooldowns = cooldowns;
- for (SpellEffectScalingEntry const* spellEffectScaling : sSpellEffectScalingStore)
- spellEffectScallingByEffectId[spellEffectScaling->SpellEffectID] = spellEffectScaling;
-
for (SpellEquippedItemsEntry const* equippedItems : sSpellEquippedItemsStore)
loadData[equippedItems->SpellID].EquippedItems = equippedItems;
@@ -2256,6 +2252,10 @@ void SpellMgr::LoadSpellInfoStore()
if (!levels->DifficultyID) // TODO: implement
loadData[levels->SpellID].Levels = levels;
+ for (SpellMiscEntry const* misc : sSpellMiscStore)
+ if (!misc->DifficultyID)
+ loadData[misc->SpellID].Misc = misc;
+
for (SpellReagentsEntry const* reagents : sSpellReagentsStore)
loadData[reagents->SpellID].Reagents = reagents;
@@ -2280,8 +2280,7 @@ void SpellMgr::LoadSpellInfoStore()
if (SpellEntry const* spellEntry = sSpellStore.LookupEntry(i))
{
loadData[i].Entry = spellEntry;
- loadData[i].Misc = sSpellMiscStore.LookupEntry(spellEntry->MiscID);
- mSpellInfoMap[i] = new SpellInfo(loadData[i], effectsBySpell[i], std::move(visualsBySpell[i]), spellEffectScallingByEffectId);
+ mSpellInfoMap[i] = new SpellInfo(loadData[i], effectsBySpell[i], std::move(visualsBySpell[i]));
}
}