fix(Scripts/ZulAman): Fix Berserk crash and Corrupted Totems not atta… (#20726)

fix(Scripts/ZulAman): Fix Berserk crash and Corrupted Totems not attacking
This commit is contained in:
Andrew
2024-11-24 19:21:00 -03:00
committed by GitHub
parent b2225cd385
commit 94873d129b
@@ -42,7 +42,7 @@ enum Spells
enum UniqueEvents enum UniqueEvents
{ {
EVENT_BERSERK = 0 EVENT_BERSERK = 1
}; };
enum Hal_CreatureIds enum Hal_CreatureIds
@@ -137,6 +137,14 @@ struct boss_halazzi : public BossAI
me->UpdateEntry(NPC_HALAZZI_TROLL); 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 void AttackStart(Unit* who) override
{ {
if (_phase != PHASE_MERGE) if (_phase != PHASE_MERGE)