fix(Scripts/SSC): make sure Vashj doesn't move during P2 (#18187)

* initial commit

* final
This commit is contained in:
Dan
2024-01-20 12:50:07 +01:00
committed by GitHub
parent 1df7d87e40
commit 9024ec314d

View File

@@ -174,11 +174,10 @@ struct boss_lady_vashj : public BossAI
{
return;
}
me->AddUnitState(UNIT_STATE_ROOT);
me->SetFacingTo(me->GetHomePosition().GetOrientation());
instance->SetData(DATA_ACTIVATE_SHIELD, 0);
scheduler.CancelAll();
scheduler.Schedule(2400ms, [this](TaskContext context)
{
DoCastRandomTarget(SPELL_FORKED_LIGHTNING);
@@ -204,6 +203,7 @@ struct boss_lady_vashj : public BossAI
if (!me->HasAura(SPELL_MAGIC_BARRIER))
{
Talk(SAY_PHASE3);
me->ClearUnitState(UNIT_STATE_ROOT);
me->SetReactState(REACT_AGGRESSIVE);
me->GetMotionMaster()->MoveChase(me->GetVictim());
scheduler.CancelAll();