From c125f4616038ed27a37ee64e9d88de3562c99b11 Mon Sep 17 00:00:00 2001 From: Asthalor <87535580+Asthalor@users.noreply.github.com> Date: Thu, 29 Jul 2021 10:46:43 +0200 Subject: [PATCH] fix(DB): Fixed Southsea Freebooter shoots while running away in fear and while polymorphed (#7019) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(DB): Fixed Southsea Freebooter shoots while running away in fear and while polymorphed Fixed some flags on the smartAI of the creature so they cant shoot while fleeing or polymorphed, LOS.. etc Closes AzerothCore issue#7013 * Add new line * Fixed SQL Queries. Fixed shotting while sapped Co-authored-by: Lukas Volgger <55922592+LukasVolgger@users.noreply.github.com> Co-authored-by: Stefano Borzì --- .../updates/pending_db_world/rev_1626635521387129200.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1626635521387129200.sql diff --git a/data/sql/updates/pending_db_world/rev_1626635521387129200.sql b/data/sql/updates/pending_db_world/rev_1626635521387129200.sql new file mode 100644 index 000000000..1b9c23d4f --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1626635521387129200.sql @@ -0,0 +1,8 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1626635521387129200'); + +-- Changed the event_type from CAST to UPDATE_IC so they only can cast shoot while on combat. +-- Changed the action_param2 from 66 to 64. 66 does nothing, and 64 will take into account LOS, being stunned so they cant cast it +UPDATE `smart_scripts` SET `event_type` = 0, `action_param2` = 64, `action_param3` = 1 WHERE (`entryorguid` = 7856) AND (`source_type` = 0) AND (`id` = 0); +-- Changed the Fleeing skill to have 7-action invoker instead of Self as the rest of fleeing actions in the database. +UPDATE `smart_scripts` SET `target_type` = 7 WHERE (`entryorguid` = 7856) AND (`source_type` = 0) AND (`id` = 1); +