Core/Spell: disable proc for magnet auras, they're handled differently

Closes #19208
This commit is contained in:
ariel-
2017-03-02 00:18:00 -03:00
parent b902f0c1b0
commit 7072bf8c02

View File

@@ -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;