mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +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
|
|
@ -405,7 +405,7 @@ void WorldSession::HandleCancelAuraOpcode( WorldPacket& recvPacket)
|
|||
{
|
||||
// except own aura spells
|
||||
bool allow = false;
|
||||
for(int k = 0; k < 3; ++k)
|
||||
for(int k = 0; k < MAX_EFFECT_INDEX; ++k)
|
||||
{
|
||||
if (spellInfo->EffectApplyAuraName[k] == SPELL_AURA_MOD_POSSESS ||
|
||||
spellInfo->EffectApplyAuraName[k] == SPELL_AURA_MOD_POSSESS_PET)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue