fix(DB/Quest): The Sun Gate (#8593)

* fixed players never being able to interact with the Sun Portal after destroying crystals
* fixed visual effect falling out of sync with the crystals due to a flaw in the spawn/respawn implementation
This commit is contained in:
Skjalf
2021-10-19 21:42:26 -03:00
committed by GitHub
parent 43ebc5f24a
commit 5030723463

View File

@@ -0,0 +1,12 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1634524834761698100');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 182026;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(22, 1, 182026, 1, 0, 29, 1, 17886, 60, 0, 0, 0, 0, '', 'Sun Gate - Only run SAI IF trigger IN RANGE'),
(22, 2, 182026, 1, 0, 29, 1, 17886, 60, 1, 1, 0, 0, '', 'Sun Gate - Only run SAI IF NO trigger IN RANGE');
-- Increase respawn timer to two minutes
UPDATE `creature` SET `spawntimesecs` = 123 WHERE `id` = 17886;
UPDATE `gameobject` SET `spawntimesecs` = 120 WHERE `id` = 184850;
UPDATE `smart_scripts` SET `action_type` = 41, `comment` = 'Sunhawk Portal Controller - On Gameobject State Changed - Despawn Target' WHERE `entryorguid` IN (-12168, -12173, -12164, -12166) AND `source_type` = 1 AND `action_type` = 51;