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
This commit is contained in:
avarishd
2023-04-04 06:18:27 +03:00
committed by GitHub
parent 572a7ea60d
commit 6099915c64

View File

@@ -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);