fix(Scripts/ZulAman): Reset threat after Zuljin does his phase transi… (#20782)

fix(Scripts/ZulAman): Reset threat after Zuljin does his phase transition transformation
This commit is contained in:
Andrew
2024-11-30 15:13:25 -03:00
committed by GitHub
parent afc81098f2
commit 00109faa86
@@ -309,6 +309,7 @@ struct boss_zuljin : public BossAI
me->m_Events.AddEventAtOffset([&] { me->m_Events.AddEventAtOffset([&] {
me->SetReactState(REACT_AGGRESSIVE); me->SetReactState(REACT_AGGRESSIVE);
DoCastSelf(Transform[_nextPhase].spell); DoCastSelf(Transform[_nextPhase].spell);
DoResetThreatList();
if (_nextPhase == PHASE_EAGLE) if (_nextPhase == PHASE_EAGLE)
{ {
@@ -331,7 +332,6 @@ struct boss_zuljin : public BossAI
me->SetReactState(REACT_PASSIVE); me->SetReactState(REACT_PASSIVE);
DoStopAttack(); DoStopAttack();
me->GetMotionMaster()->Clear(); me->GetMotionMaster()->Clear();
DoResetThreatList();
me->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID, 0); me->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID, 0);
me->RemoveAurasDueToSpell(Transform[NextPhase].unaura); me->RemoveAurasDueToSpell(Transform[NextPhase].unaura);