move a bit of code around for mirror image creatureAI
This commit is contained in:
parent
4cb370e192
commit
582abe1541
1 changed files with 6 additions and 4 deletions
|
|
@ -154,8 +154,13 @@ class npc_pet_mage_mirror_image : public CreatureScript
|
|||
{
|
||||
me->getThreatManager().resetAllAggro();
|
||||
me->AddThreat(selection, 1000000.0f);
|
||||
AttackStart(selection);
|
||||
|
||||
if (owner->IsInCombat())
|
||||
AttackStart(selection);
|
||||
}
|
||||
|
||||
if (!owner->IsInCombat() && !me->GetVictim())
|
||||
EnterEvadeMode();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -171,9 +176,6 @@ class npc_pet_mage_mirror_image : public CreatureScript
|
|||
if (events.GetTimer() < 1200)
|
||||
return;
|
||||
|
||||
if (!me->GetVictim() || !me->GetVictim()->IsAlive())
|
||||
EnterEvadeMode();
|
||||
|
||||
if (!me->IsInCombat() || !me->GetVictim())
|
||||
{
|
||||
MySelectNextTarget();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue