mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 04:37:02 +00:00
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:
parent
be9f9765cf
commit
bb02504469
1 changed files with 14 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue