aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-03-03 21:36:56 -0300
committerariel- <ariel-@users.noreply.github.com>2017-03-03 21:36:56 -0300
commitebba8dcba87190cfdef55bd896a11d2d234cd754 (patch)
tree01ea91291129343c995bd1d34c5a5331ab6f877e /src
parent32c5d4f53fa44d4c6263db2d248a9f73a1542fc9 (diff)
Core/Spells: fix some db errors
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index a6f4b69e529..05e47b0d66d 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -2783,9 +2783,8 @@ void SpellMgr::LoadSpellInfoCorrections()
}
// disable proc for magnet auras, they're handled differently
- for (uint8 j = 0; j < MAX_SPELL_EFFECTS; ++j)
- if (spellInfo->Effects[j].IsAura(SPELL_AURA_SPELL_MAGNET))
- spellInfo->ProcFlags = 0;
+ if (spellInfo->HasAura(SPELL_AURA_SPELL_MAGNET))
+ spellInfo->ProcFlags = 0;
if (spellInfo->ActiveIconID == 2158) // flight
spellInfo->Attributes |= SPELL_ATTR0_PASSIVE;