From b7f81ab3728f9c620b66367d3222d5f06f07ac44 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Tue, 6 Dec 2022 13:40:14 +0100 Subject: [PATCH] =?UTF-8?q?fix(Scripts/HellfireRamparts):=20Hellfire=20Sen?= =?UTF-8?q?try=20should=20aggro=20on=20each=20o=E2=80=A6=20(#13878)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Scripts/HellfireRamparts): Hellfire Sentry should aggro on each other's target. Fixes #13747 --- .../updates/pending_db_world/rev_1668883622593350000.sql | 4 ++++ .../HellfireRamparts/boss_vazruden_the_herald.cpp | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1668883622593350000.sql diff --git a/data/sql/updates/pending_db_world/rev_1668883622593350000.sql b/data/sql/updates/pending_db_world/rev_1668883622593350000.sql new file mode 100644 index 000000000..8aa42f26d --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1668883622593350000.sql @@ -0,0 +1,4 @@ +-- +DELETE FROM `smart_scripts` WHERE `entryorguid`=17517 AND `source_type`=0 AND `id`=1; +INSERT INTO `smart_scripts` VALUES +(17517,0,1,0,4,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,23,0,0,0,0,0,0,0,0,'Hellfire Sentry - On Aggro - Set Data 0-1 on summoner'); diff --git a/src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp b/src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp index f0ebbe7ee..e7cde7386 100644 --- a/src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp +++ b/src/server/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp @@ -132,6 +132,14 @@ public: BossAI::EnterEvadeMode(); } + void SetData(uint32 type, uint32 data) override + { + if (type == 0 && data == 1) + { + summons.DoZoneInCombat(NPC_HELLFIRE_SENTRY); + } + } + void UpdateAI(uint32 /*diff*/) override { if (!me->IsVisible() && summons.size() == 0)