Merge pull request #7032 from Exodius/master
[Script/ICC] Properly fix Dark Nucleus aggro problems
This commit is contained in:
@@ -1296,7 +1296,7 @@ class npc_dark_nucleus : public CreatureScript
|
|||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
me->SetReactState(REACT_PASSIVE);
|
me->SetReactState(REACT_DEFENSIVE);
|
||||||
me->CastSpell(me, SPELL_SHADOW_RESONANCE_AURA, true);
|
me->CastSpell(me, SPELL_SHADOW_RESONANCE_AURA, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1315,15 +1315,12 @@ class npc_dark_nucleus : public CreatureScript
|
|||||||
|
|
||||||
void MoveInLineOfSight(Unit* who)
|
void MoveInLineOfSight(Unit* who)
|
||||||
{
|
{
|
||||||
if (me->GetDistance(who) >= 15.0f)
|
|
||||||
return;
|
|
||||||
|
|
||||||
ScriptedAI::MoveInLineOfSight(who);
|
ScriptedAI::MoveInLineOfSight(who);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DamageTaken(Unit* attacker, uint32& /*damage*/)
|
void DamageTaken(Unit* attacker, uint32& /*damage*/)
|
||||||
{
|
{
|
||||||
if (attacker == me || attacker == me->getVictim())
|
if (attacker == me)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
me->DeleteThreatList();
|
me->DeleteThreatList();
|
||||||
@@ -1345,6 +1342,8 @@ class npc_dark_nucleus : public CreatureScript
|
|||||||
DoCast(victim, SPELL_SHADOW_RESONANCE_RESIST);
|
DoCast(victim, SPELL_SHADOW_RESONANCE_RESIST);
|
||||||
me->ClearUnitState(UNIT_STATE_CASTING);
|
me->ClearUnitState(UNIT_STATE_CASTING);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
MoveInLineOfSight(me->getVictim());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_targetAuraCheck -= diff;
|
_targetAuraCheck -= diff;
|
||||||
|
|||||||
Reference in New Issue
Block a user