mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[9408] Add MAX_EFFECT_INDEX to enum SpellEffectIndex and use it.
This commit is contained in:
parent
2a5ce2198c
commit
ff8d494ed4
18 changed files with 114 additions and 112 deletions
|
|
@ -1166,7 +1166,7 @@ void Pet::_LoadAuras(uint32 timediff)
|
|||
continue;
|
||||
}
|
||||
|
||||
if(effindex >= 3)
|
||||
if(effindex >= MAX_EFFECT_INDEX)
|
||||
{
|
||||
sLog.outError("Invalid effect index (spellid %u, effindex %u), ignore.",spellid,effindex);
|
||||
continue;
|
||||
|
|
@ -1236,7 +1236,7 @@ void Pet::_SaveAuras()
|
|||
{
|
||||
// skip all auras from spell that apply at cast SPELL_AURA_MOD_SHAPESHIFT or pet area auras.
|
||||
uint8 i;
|
||||
for (i = 0; i < 3; ++i)
|
||||
for (i = 0; i < MAX_EFFECT_INDEX; ++i)
|
||||
if (spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_STEALTH ||
|
||||
spellInfo->Effect[i] == SPELL_EFFECT_APPLY_AREA_AURA_OWNER ||
|
||||
spellInfo->Effect[i] == SPELL_EFFECT_APPLY_AREA_AURA_PET )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue