From 94873d129b123bc92a1bf5b308fd23f8b126499c Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Sun, 24 Nov 2024 19:21:00 -0300 Subject: [PATCH] =?UTF-8?q?fix(Scripts/ZulAman):=20Fix=20Berserk=20crash?= =?UTF-8?q?=20and=20Corrupted=20Totems=20not=20atta=E2=80=A6=20(#20726)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Scripts/ZulAman): Fix Berserk crash and Corrupted Totems not attacking --- .../scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp index 491dd4e9a..fc15e1e38 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp @@ -42,7 +42,7 @@ enum Spells enum UniqueEvents { - EVENT_BERSERK = 0 + EVENT_BERSERK = 1 }; enum Hal_CreatureIds @@ -137,6 +137,14 @@ struct boss_halazzi : public BossAI me->UpdateEntry(NPC_HALAZZI_TROLL); } + void JustSummoned(Creature* summon) override + { + BossAI::JustSummoned(summon); + + if (summon->GetEntry() == NPC_TOTEM) + summon->Attack(me->GetVictim(), false); + } + void AttackStart(Unit* who) override { if (_phase != PHASE_MERGE)