mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
move a bit of code around for mirror image creatureAI
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user