Skip to content

Commit

Permalink
fix(Scripts/ZulAman): Fix Berserk crash and Corrupted Totems not atta… (
Browse files Browse the repository at this point in the history
azerothcore#20726)

fix(Scripts/ZulAman): Fix Berserk crash and Corrupted Totems not attacking
  • Loading branch information
Nyeriah authored Nov 24, 2024
1 parent b2225cd commit 94873d1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ enum Spells

enum UniqueEvents
{
EVENT_BERSERK = 0
EVENT_BERSERK = 1
};

enum Hal_CreatureIds
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 94873d1

Please sign in to comment.