From 9b9e070c3f7f7b05ff45f952f962e873027d1771 Mon Sep 17 00:00:00 2001 From: Andrius Peleckas <32540208+sanctum32@users.noreply.github.com> Date: Thu, 1 Apr 2021 18:36:02 +0300 Subject: [PATCH] fix(DB/Spells): spell "57874 Twilight Shift" should be negative + target only players (#5087) --- .../pending_db_world/rev_1617254287410662400.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1617254287410662400.sql diff --git a/data/sql/updates/pending_db_world/rev_1617254287410662400.sql b/data/sql/updates/pending_db_world/rev_1617254287410662400.sql new file mode 100644 index 000000000..9999be6b7 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1617254287410662400.sql @@ -0,0 +1,12 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617254287410662400'); + +SET @SPELL_ATTR0_CU_NEGATIVE_EFF0 := 4096, + @SPELL_ATTR0_CU_NEGATIVE_EFF1 := 8192; + +DELETE FROM `spell_custom_attr` WHERE `spell_id`=57874; +INSERT INTO `spell_custom_attr` (`spell_id`, `attributes`) VALUES +(57874, @SPELL_ATTR0_CU_NEGATIVE_EFF0|@SPELL_ATTR0_CU_NEGATIVE_EFF1); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceGroup`=0 AND `SourceEntry`=57874 AND `SourceId`=0 AND `ElseGroup`=0 AND `ConditionTypeOrReference`=31 AND `ConditionTarget`=1 AND `ConditionValue1`=4 AND `ConditionValue2`=0 AND `ConditionValue3`=0; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(17, 0, 57874, 0, 0, 31, 1, 4, 0, 0, 0, 0, 0, '', 'Twilight Shift spell should be applied only on player');