fix(Scripts/ZulAman): Use Zul'jins threatlist to search for cyclone t… (#21138)
This commit is contained in:
parent
286e79e8dd
commit
67afd97edf
1 changed files with 4 additions and 2 deletions
|
|
@ -388,8 +388,10 @@ struct npc_zuljin_vortex : public ScriptedAI
|
|||
void ChangeToNewPlayer()
|
||||
{
|
||||
DoResetThreatList();
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 100.0f, true))
|
||||
me->AddThreat(target, 10000000.0f);
|
||||
if (WorldObject* summoner = GetSummoner())
|
||||
if (Creature* zuljin = summoner->ToCreature())
|
||||
if (Unit* target = zuljin->AI()->SelectTarget(SelectTargetMethod::Random, 0, 80.0f, true))
|
||||
me->AddThreat(target, 10000000.0f);
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 /*diff*/) override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue