fix(Scripts/Spell): Don't use invalid spells for the Magic Rooster mount (#9797)

* fix(Scripts/Spell): Don't use invalid spells for the Magic Rooster mount

- cherry-pick commit (246a8661fd)

Co-Authored-By: Wyrserth <43747507+Wyrserth@users.noreply.github.com>
This commit is contained in:
Kitzunu
2022-02-10 13:40:07 +01:00
committed by GitHub
parent 179d04e162
commit d505381106
3 changed files with 13 additions and 53 deletions

View File

@@ -3752,9 +3752,14 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->Effects[EFFECT_1].MiscValue = 126;
});
// Magic Broom
ApplySpellFix({ 47977 }, [](SpellInfo* spellInfo)
ApplySpellFix({
47977, // Magic Broom
65917 // Magic Rooster
}, [](SpellInfo* spellInfo)
{
// First two effects apply auras, which shouldn't be there
// due to NO_TARGET applying aura on current caster (core bug)
// Just wipe effect data, to mimic blizz-behavior
spellInfo->Effects[EFFECT_0].Effect = 0;
spellInfo->Effects[EFFECT_1].Effect = 0;
});