From ef8998f52b209233cd44c01c068a5327aacf66cd Mon Sep 17 00:00:00 2001 From: offl Date: Wed, 17 Jun 2020 22:11:15 +0200 Subject: DB/SAI: Make SMART_EVENT_IS_BEHIND_TARGET unused and fix all actions with Backstab Closes #24766 (cherry picked from commit 8fef9aaf75c05190a59e8b3c8d7799f883970e2e) --- .../2022_01_06_54_world_2020_06_17_03_world.sql | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sql/updates/world/master/2022_01_06_54_world_2020_06_17_03_world.sql (limited to 'sql') diff --git a/sql/updates/world/master/2022_01_06_54_world_2020_06_17_03_world.sql b/sql/updates/world/master/2022_01_06_54_world_2020_06_17_03_world.sql new file mode 100644 index 00000000000..7f926143092 --- /dev/null +++ b/sql/updates/world/master/2022_01_06_54_world_2020_06_17_03_world.sql @@ -0,0 +1,20 @@ +-- Players spells. Also fixes wrong target type +UPDATE `smart_scripts` SET `action_param2` = 2, `target_type` = 2 WHERE `source_type` = 0 AND `action_type` = 11 AND `action_param1` IN (53,2589,2590,2591,8721); +-- Non-player versions works well without triggered flag +UPDATE `smart_scripts` SET `action_param2` = 0 WHERE `source_type` = 0 AND `action_type` = 11 AND `action_param1` IN (7159,15657) AND `action_param2` = 2; +-- Range event +UPDATE `smart_scripts` SET `event_type` = 0, `event_param1` = 5000, `event_param2` = 5000 WHERE `source_type` = 0 AND `action_type` = 11 AND `action_param1` IN (2590,7159,8721,15582,15657) AND `event_type` = 9; +-- On Behind Target +UPDATE `smart_scripts` SET `event_type` = 0, `event_param3` = 6000, `event_param4` = 9000 WHERE `source_type` = 0 AND `action_type` = 11 AND `action_param1` IN (53,2589,7159,15657,30992,37685,71410) AND `event_type` = 67 AND `event_param3` = 0 AND `event_param4` = 0; +-- Unique cases +UPDATE `smart_scripts` SET `event_type` = 0 WHERE `entryorguid` = 95 AND `source_type` = 0 AND `action_type` = 11 AND `action_param1` = 53; +UPDATE `smart_scripts` SET `event_type` = 0, `event_flags` = 0, `event_param1` = 6000, `event_param2` = 8500 WHERE `entryorguid` IN (3530,3531) AND `source_type` = 0 AND `action_type` = 11 AND `action_param1` = 15657; + +DELETE FROM `spell_custom_attr` WHERE `entry` IN (30992,34614,52540,58471,63754,71410); +INSERT INTO `spell_custom_attr` (`entry`,`attributes`) VALUES +(30992,131072), +(34614,131072), +(52540,131072), +(58471,131072), +(63754,131072), +(71410,131072); -- cgit v1.2.3