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:
parent
b2225cd385
commit
94873d129b
1 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue