From 5008e633e368af57ab6b9ea761c123e3cf7ae66f Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sun, 24 Jul 2022 19:33:05 +0200 Subject: [PATCH] =?UTF-8?q?fix(Core/Spells):=20Elemental=20Mastery=20shoul?= =?UTF-8?q?d=20only=20affect=20Lightning=20Bolt=E2=80=A6=20(#12499)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(Core/Spells): Elemental Mastery should only affect Lightning Bolt, Chain Lightning and Lava Burst. Fixes #10903 * Update. --- .../updates/pending_db_world/rev_1658605553284135100.sql | 2 ++ src/server/game/Spells/SpellInfoCorrections.cpp | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1658605553284135100.sql diff --git a/data/sql/updates/pending_db_world/rev_1658605553284135100.sql b/data/sql/updates/pending_db_world/rev_1658605553284135100.sql new file mode 100644 index 000000000..d1f14a6f2 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1658605553284135100.sql @@ -0,0 +1,2 @@ +-- +UPDATE `spell_proc_event` SET `SpellFamilyName`=11, `SpellFamilyMask0`=0x00000003, `SpellFamilyMask1`=0x00001000 WHERE `entry`=16166; diff --git a/src/server/game/Spells/SpellInfoCorrections.cpp b/src/server/game/Spells/SpellInfoCorrections.cpp index 17542822f..30ca46693 100644 --- a/src/server/game/Spells/SpellInfoCorrections.cpp +++ b/src/server/game/Spells/SpellInfoCorrections.cpp @@ -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];