fix(DB/SAI/Quest): Curing the Sick (#6041)

This commit is contained in:
Stifler82
2021-06-02 10:54:41 +01:00
committed by GitHub
parent 1011594a6a
commit 40a71471f2

View File

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