fix(DB/Spells): spell "57874 Twilight Shift" should be negative + target only players (#5087)

This commit is contained in:
Andrius Peleckas
2021-04-01 18:36:02 +03:00
committed by GitHub
parent 12165b81fc
commit 9b9e070c3f

View File

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