mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
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:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user