From 40a71471f2681a5dbff1c5a8709820f1a087c30e Mon Sep 17 00:00:00 2001 From: Stifler82 Date: Wed, 2 Jun 2021 10:54:41 +0100 Subject: [PATCH] fix(DB/SAI/Quest): Curing the Sick (#6041) --- .../pending_db_world/rev_1621946683156041900.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1621946683156041900.sql diff --git a/data/sql/updates/pending_db_world/rev_1621946683156041900.sql b/data/sql/updates/pending_db_world/rev_1621946683156041900.sql new file mode 100644 index 000000000..2c2c96f3b --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1621946683156041900.sql @@ -0,0 +1,14 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1621946683156041900'); + +DELETE FROM `conditions` WHERE `ConditionValue2` IN (12296, 12298); +INSERT INTO `conditions` VALUES +(17, 0, 19512, 0, 0, 31, 1, 3, 12296, 0, 0, 0, 0,'', 'Sickly Gazelle'), +(17, 0, 19512, 0, 1, 31, 1, 3, 12298, 0, 0, 0, 0,'', 'Sickly Deer'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 12298; + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 12298); +INSERT INTO `smart_scripts` VALUES +(12298, 0, 0, 1, 8, 0, 100, 0, 19512, 0, 15000, 15000, 0, 3, 12299, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sickly Deer - On Spellhit \'Apply Salve\' - Morph To Creature Cured Deer'), +(12298, 0, 1, 0, 61, 0, 100, 0, 19512, 0, 15000, 15000, 0, 18, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sickly Deer - On Spellhit \'Apply Salve\' - Set Flags Not Attackable'), +(12298, 0, 2, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 19, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sickly Deer - On Respawn - Remove Flags Not Attackable');