mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +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->getThreatManager().resetAllAggro();
|
||||||
me->AddThreat(selection, 1000000.0f);
|
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)
|
if (events.GetTimer() < 1200)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!me->GetVictim() || !me->GetVictim()->IsAlive())
|
|
||||||
EnterEvadeMode();
|
|
||||||
|
|
||||||
if (!me->IsInCombat() || !me->GetVictim())
|
if (!me->IsInCombat() || !me->GetVictim())
|
||||||
{
|
{
|
||||||
MySelectNextTarget();
|
MySelectNextTarget();
|
||||||
|
|||||||
Reference in New Issue
Block a user