fix (script/SSC) Enchanted Elementals follow Vashj (#19477)

* elementals follow vashj

* ) :)
This commit is contained in:
Tereneckla
2024-07-27 00:47:46 +00:00
committed by GitHub
parent 6289be19c7
commit f3c561032e
2 changed files with 14 additions and 1 deletions

View File

@@ -140,7 +140,11 @@ struct boss_lady_vashj : public BossAI
{
summon->GetMotionMaster()->MoveRandom(30.0f);
}
else if (summon->GetEntry() != NPC_TAINTED_ELEMENTAL && summon->GetEntry() != NPC_ENCHANTED_ELEMENTAL)
else if (summon->GetEntry() == NPC_ENCHANTED_ELEMENTAL)
{
summon->GetMotionMaster()->MoveFollow(me, 0.0f, 0.0f);
}
else if (summon->GetEntry() != NPC_TAINTED_ELEMENTAL)
{
summon->GetMotionMaster()->MovePoint(POINT_HOME, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), true, true);
}