mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 22:26:22 +00:00
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
|
||||
{
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user