From 90cc602262922259263adbfc340f6cb70cf9be44 Mon Sep 17 00:00:00 2001 From: KJack Date: Wed, 31 May 2023 22:27:44 -0400 Subject: [PATCH] fix(DB/SAI): Lupine Delusion (5097) and Illusionary Phantasm (6493) properly despawn when hit (#16382) * Make illusionary creatures in SFK and SM disappear on hit. * Update data/sql/updates/pending_db_world/rev_1685233623001496914.sql --------- Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com> --- .../pending_db_world/rev_1685233623001496914.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1685233623001496914.sql diff --git a/data/sql/updates/pending_db_world/rev_1685233623001496914.sql b/data/sql/updates/pending_db_world/rev_1685233623001496914.sql new file mode 100644 index 000000000..c2a23feb6 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1685233623001496914.sql @@ -0,0 +1,10 @@ +-- 5097: Lupine Delusion (Shadowfang Keep) +-- 6493: Illusionary Phantasm (Scarlet Monastery Graveyard) +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN (5097, 6493); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` IN (5097, 6493)); +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(5097, 0, 0, 0, 2, 0, 100, 0, 0, 99, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lupine Delusion - Between 0-99% Health - Despawn Instant'), +(5097, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lupine Delusion - On Just Died - Despawn Instant'), +(6493, 0, 0, 0, 2, 0, 100, 0, 0, 99, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Illusionary Phantasm - Between 0-99% Health - Despawn Instant'), +(6493, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Illusionary Phantasm - On Just Died - Despawn Instant');