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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user