From 9024ec314df7ab3d2080c994816a808cce0b9497 Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Sat, 20 Jan 2024 12:50:07 +0100 Subject: [PATCH] fix(Scripts/SSC): make sure Vashj doesn't move during P2 (#18187) * initial commit * final --- .../CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp index 1f2be71e5..6c05036ed 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp @@ -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();