Core/Spells: fix some db errors

(cherrypicked from ebba8dcba8)
This commit is contained in:
ariel-
2017-03-03 21:36:56 -03:00
committed by Shauren
parent 378de1fde0
commit fa46e7c406
2 changed files with 3 additions and 4 deletions

View File

@@ -0,0 +1 @@
DELETE FROM `spell_proc` WHERE `SpellId` IN (8178, 38857);

View File

@@ -3616,10 +3616,8 @@ void SpellMgr::LoadSpellInfoCorrections()
}
// disable proc for magnet auras, they're handled differently
for (uint8 j = 0; j < MAX_SPELL_EFFECTS; ++j)
if (SpellEffectInfo const* spellEffectInfo = spellInfo->GetEffect(DIFFICULTY_NONE, i))
if (spellEffectInfo->IsAura(SPELL_AURA_SPELL_MAGNET))
spellInfo->ProcFlags = 0;
if (spellInfo->HasAura(DIFFICULTY_NONE, SPELL_AURA_SPELL_MAGNET))
spellInfo->ProcFlags = 0;
if (spellInfo->ActiveIconFileDataId == 135754) // flight
spellInfo->Attributes |= SPELL_ATTR0_PASSIVE;