From 6d45329df13e137048f01a28c5004f79248a7ea9 Mon Sep 17 00:00:00 2001 From: avarishd <46330494+avarishd@users.noreply.github.com> Date: Sat, 7 Oct 2023 13:33:42 +0300 Subject: [PATCH] fix(DB/Conditions): Don't allow multiple Banner of Provocation (#17430) --- data/sql/updates/pending_db_world/rev_1696575537212629500.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1696575537212629500.sql diff --git a/data/sql/updates/pending_db_world/rev_1696575537212629500.sql b/data/sql/updates/pending_db_world/rev_1696575537212629500.sql new file mode 100644 index 000000000..28c912ab4 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1696575537212629500.sql @@ -0,0 +1,4 @@ +-- Banner of Provocation +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 17 AND `SourceGroup` = 0 AND `SourceEntry` = 27517; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(17, 0, 27517, 0, 0, 30, 0, 181058, 20, 0, 1, 25, 0, '', 'Allow using "Banner of Provocation" if there are no other banners within 20y.');