From d6c195a9891df3ccb7f44552f9bbea8a7e6d72e4 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sat, 23 Apr 2022 16:36:06 +0200 Subject: [PATCH] fix(Core/Spells): Custom attributes belong in the DB (#11405) * fix(Core/Spells): Custom attributes belong in the DB * Update rev_1650033460420476500.sql --- .../sql/updates/pending_db_world/rev_1650033460420476500.sql | 5 +++++ src/server/game/Spells/SpellInfoCorrections.cpp | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 data/sql/updates/pending_db_world/rev_1650033460420476500.sql diff --git a/data/sql/updates/pending_db_world/rev_1650033460420476500.sql b/data/sql/updates/pending_db_world/rev_1650033460420476500.sql new file mode 100644 index 000000000..3b071f9f6 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1650033460420476500.sql @@ -0,0 +1,5 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1650033460420476500'); + +DELETE FROM `spell_custom_attr` WHERE `spell_id` = 22247; +INSERT INTO `spell_custom_attr` (`spell_id`, `attributes`) VALUES +(22247, 0x00000040); diff --git a/src/server/game/Spells/SpellInfoCorrections.cpp b/src/server/game/Spells/SpellInfoCorrections.cpp index c1e442e66..3b9f21cde 100644 --- a/src/server/game/Spells/SpellInfoCorrections.cpp +++ b/src/server/game/Spells/SpellInfoCorrections.cpp @@ -4166,11 +4166,6 @@ void SpellMgr::LoadSpellInfoCorrections() spellInfo->RangeEntry = sSpellRangeStore.LookupEntry(152); // 150 yards }); - ApplySpellFix({ 22247 }, [](SpellInfo* spellInfo) - { - spellInfo->AttributesCu |= SPELL_ATTR0_CU_DONT_BREAK_STEALTH; - }); - // Manastorm ApplySpellFix({ 21097 }, [](SpellInfo* spellInfo) {