Check some power-related auras for proper power ids.

Affected:
  SPELL_AURA_MOD_INCREASE_ENERGY
  SPELL_AURA_MOD_INCREASE_ENERGY_PERCENT
  SPELL_AURA_PERIODIC_MANA_LEECH
  SPELL_AURA_PERIODIC_ENERGIZE
  SPELL_AURA_POWER_BURN_MANA
This commit is contained in:
LordJZ 2012-08-12 08:12:32 +04:00 committed by Antz
parent be9f9765cf
commit bb02504469

View file

@ -578,8 +578,21 @@ void LoadDBCStores(const std::string& dataPath)
for(uint32 i = 1; i < sSpellEffectStore.GetNumRows(); ++i)
{
if(SpellEffectEntry const *spellEffect = sSpellEffectStore.LookupEntry(i))
if (SpellEffectEntry const *spellEffect = sSpellEffectStore.LookupEntry(i))
{
switch (spellEffect->EffectApplyAuraName)
{
case SPELL_AURA_MOD_INCREASE_ENERGY:
case SPELL_AURA_MOD_INCREASE_ENERGY_PERCENT:
case SPELL_AURA_PERIODIC_MANA_LEECH:
case SPELL_AURA_PERIODIC_ENERGIZE:
case SPELL_AURA_POWER_BURN_MANA:
MANGOS_ASSERT(spellEffect->EffectMiscValue >= 0 && spellEffect->EffectMiscValue < MAX_POWERS);
break;
}
sSpellEffectMap[spellEffect->EffectSpellId].effects[spellEffect->EffectIndex] = spellEffect;
}
}
LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellEquippedItemsStore, dbcPath,"SpellEquippedItems.dbc");