fix(Core/Spells): Elemental Mastery should only affect Lightning Bolt… (#12499)

* fix(Core/Spells): Elemental Mastery should only affect Lightning Bolt, Chain Lightning and Lava Burst.

Fixes #10903

* Update.
This commit is contained in:
UltraNix
2022-07-24 19:33:05 +02:00
committed by GitHub
parent d2f126710f
commit 5008e633e3
2 changed files with 8 additions and 0 deletions

View File

@@ -4323,6 +4323,12 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->Effects[EFFECT_0].MiscValue = 8;
});
// Elemental Mastery
ApplySpellFix({ 16166 }, [](SpellInfo* spellInfo)
{
spellInfo->Effects[EFFECT_0].SpellClassMask = flag96(0x00000003, 0x00001000);
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];