From 6099915c644a0093509fec103e1e60bde96f0f38 Mon Sep 17 00:00:00 2001 From: avarishd <46330494+avarishd@users.noreply.github.com> Date: Tue, 4 Apr 2023 06:18:27 +0300 Subject: [PATCH] fix(DB/creature_addon): Remove deprecated bytes2 flags. (#15788) * fix(DB/creature_addon): Remove deprecated bytes2 flags. * Update rev_1680463160388009300.sql * update * Update data/sql/updates/pending_db_world/rev_1680463160388009300.sql * remove auras from 50009 * creature_template_addon * creature_template_addon --- .../rev_1680463160388009300.sql | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1680463160388009300.sql diff --git a/data/sql/updates/pending_db_world/rev_1680463160388009300.sql b/data/sql/updates/pending_db_world/rev_1680463160388009300.sql new file mode 100644 index 000000000..e60ba57f4 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1680463160388009300.sql @@ -0,0 +1,27 @@ +-- Remove old/deprecated bytes2 flags. +UPDATE `creature_addon` SET `bytes2` = 1 WHERE `bytes2` IN (257,733,4097,301993985,318771201,285216769,234885121); +UPDATE `creature_addon` SET `bytes2` = 0 WHERE `bytes2` IN (256,4092,4096); +UPDATE `creature_addon` SET `bytes2` = 2 WHERE `bytes2` IN (258,4098); + +UPDATE `creature_template_addon` SET `bytes2` = 1 WHERE `bytes2` IN (3,69,257,2049,2305,4097,10241,133121,234885121,285216769); +UPDATE `creature_template_addon` SET `bytes2` = 0 WHERE `bytes2` IN (256,4092,4096,65536); +UPDATE `creature_template_addon` SET `bytes2` = 2 WHERE `bytes2` IN (258,4098); + +-- Creature where neither of the values in creature_addon were used. +DELETE FROM `creature_addon` WHERE `guid` IN (75829,77583,77606,77607,82379,73192,80419,81738,82004,32943); + +-- Incorrect mob spawns (wrong zone/area/sniffed as a pet (with spirit bond)) +-- Blackwind Sabercat +DELETE FROM `creature` WHERE (`guid` = 75829 AND `id1` = 21723); +-- Scorpid Bonecrawler +DELETE FROM `creature` WHERE (`guid` = 77583 AND `id1` = 22100); +-- Elder Springpaw +DELETE FROM `creature` WHERE (`guid` = 82379 AND `id1` = 15652); +-- Scalewing Serpent +DELETE FROM `creature` WHERE (`guid` = 73192 AND `id1` = 20749); +-- Stunetusk Boar +DELETE FROM `creature` WHERE (`guid` = 80419 AND `id1` = 113); + + +-- Hatecrest Warrior defensive stance, Grimtotem Raider berserk stance, handled by SAI +UPDATE `creature_addon` SET `auras` = '' WHERE `guid` IN (51476,50009);