From e6aef88abacd49528d5c0e1de7abf2cc349ecd3e Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Mon, 21 Nov 2022 23:08:28 +0100 Subject: [PATCH] =?UTF-8?q?fix(DB/Spells):=20Drums=20of=20War/Battle/Speed?= =?UTF-8?q?/Restorarion=20should=20apply=20Ti=E2=80=A6=20(#13866)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ...nnitus debuff. --- .../pending_db_world/rev_1668853205841082300.sql | 7 +++++++ src/server/game/Spells/SpellInfoCorrections.cpp | 12 +++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 data/sql/updates/pending_db_world/rev_1668853205841082300.sql diff --git a/data/sql/updates/pending_db_world/rev_1668853205841082300.sql b/data/sql/updates/pending_db_world/rev_1668853205841082300.sql new file mode 100644 index 000000000..2ddd5d284 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1668853205841082300.sql @@ -0,0 +1,7 @@ +-- +DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (35475,35476,35477,35478) AND `spell_effect`=51120; +INSERT INTO `spell_linked_spell` VALUES +(35475,51120,1,'Drums of War - Tinnitus'), +(35476,51120,1,'Drums of Battle - Tinnitus'), +(35477,51120,1,'Drums of Speed - Tinnitus'), +(35478,51120,1,'Drums of War - Tinnitus'); diff --git a/src/server/game/Spells/SpellInfoCorrections.cpp b/src/server/game/Spells/SpellInfoCorrections.cpp index 120392a85..94f633bad 100644 --- a/src/server/game/Spells/SpellInfoCorrections.cpp +++ b/src/server/game/Spells/SpellInfoCorrections.cpp @@ -4430,9 +4430,15 @@ void SpellMgr::LoadSpellInfoCorrections() // Digestive Acid (Temporary) ApplySpellFix({ 26476 }, [](SpellInfo* spellInfo) { - spellInfo->Attributes |= SPELL_ATTR0_NO_IMMUNITIES; - spellInfo->AttributesEx2 |= SPELL_ATTR2_IGNORE_LINE_OF_SIGHT; - spellInfo->AttributesEx3 |= SPELL_ATTR3_ALWAYS_HIT; + spellInfo->Attributes |= SPELL_ATTR0_NO_IMMUNITIES; + spellInfo->AttributesEx2 |= SPELL_ATTR2_IGNORE_LINE_OF_SIGHT; + spellInfo->AttributesEx3 |= SPELL_ATTR3_ALWAYS_HIT; + }); + + // Drums of War/Battle/Speed/Restoration + ApplySpellFix({ 35475, 35476, 35477, 35478 }, [](SpellInfo* spellInfo) + { + spellInfo->ExcludeTargetAuraSpell = 51120; }); for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)