From f89f0301ae60f2e6be59a2f3f6169bfcc07cba6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20Costa?= <54484196+claudiodfc@users.noreply.github.com> Date: Tue, 11 Jan 2022 12:50:46 +0000 Subject: [PATCH] fix(DB/Conditions): Core Hounds and Firesword respawn (#10112) - Conditions to disable respawn in case their related boss has been killed. --- .../updates/pending_db_world/rev_1641824664894549700.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1641824664894549700.sql diff --git a/data/sql/updates/pending_db_world/rev_1641824664894549700.sql b/data/sql/updates/pending_db_world/rev_1641824664894549700.sql new file mode 100644 index 000000000..9aee8a211 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1641824664894549700.sql @@ -0,0 +1,8 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1641824664894549700'); + +SET @FIRESWORN = 12099; +SET @CORE_HOUND = 11671; +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 29 AND `SourceEntry` = @FIRESWORN; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(29, 0, @CORE_HOUND, 0, 0, 13, 0, 2, 1, 3, 1, 0, 0, '', 'Core Hound only spawn if boss state 1 (Magmadar) is not DONE.'), +(29, 0, @FIRESWORN, 0, 0, 13, 0, 2, 3, 3, 1, 0, 0, '', 'Firesworn only spawn if boss state 3 (Garr) is not DONE.');