aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-03-02 00:18:00 -0300
committerariel- <ariel-@users.noreply.github.com>2017-03-02 00:18:00 -0300
commit7072bf8c02175c8d1e0a0adc78239cdff9ac5ecd (patch)
tree01383c4d440aa0d5cfc18d66ea90492c2d2b6923 /src
parentb902f0c1b06b9d2d53df51a7f532f7f11f75a855 (diff)
Core/Spell: disable proc for magnet auras, they're handled differently
Closes #19208
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 32e8856d7ce..a6f4b69e529 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -2782,6 +2782,11 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->Effects[j].TargetA = SpellImplicitTargetInfo(TARGET_UNIT_CASTER);
}
+ // 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->ActiveIconID == 2158) // flight
spellInfo->Attributes |= SPELL_ATTR0_PASSIVE;