mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Scripts/Icecrown Citadel): Correct pipe pathing for Vengeful Fles… (#20048)
* fix(Scripts/Icecrown Citadel): Correct pipe pathing for Vengeful Fleshreapers * fix(Scripts/Icecrown Citadel): Correct pipe pathing for Vengeful Fleshreapers ---------
This commit is contained in:
@@ -3024,14 +3024,16 @@ struct npc_icc_spire_frostwyrm : public ScriptedAI
|
|||||||
bool _canResetFlyingEffects;
|
bool _canResetFlyingEffects;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define VENGEFUL_WP_COUNT 6
|
#define VENGEFUL_WP_COUNT 8
|
||||||
const Position VengefulWP[VENGEFUL_WP_COUNT] =
|
const Position VengefulWP[VENGEFUL_WP_COUNT] =
|
||||||
{
|
{
|
||||||
{4432.21f, 3041.5f, 372.783f, 0.0f},
|
{4432.21f, 3041.5f, 372.783f, 0.0f},
|
||||||
|
{4408.67f, 3041.81f, 372.48f, 0.0f},
|
||||||
{4370.50f, 3042.00f, 372.80f, 0.0f},
|
{4370.50f, 3042.00f, 372.80f, 0.0f},
|
||||||
{4370.37f, 3059.16f, 371.69f, 0.0f},
|
{4370.37f, 3059.16f, 371.69f, 0.0f},
|
||||||
{4342.53f, 3058.97f, 371.68f, 0.0f},
|
{4342.53f, 3058.97f, 371.68f, 0.0f},
|
||||||
{4342.51f, 3041.24f, 372.80f, 0.0f},
|
{4342.51f, 3041.24f, 372.80f, 0.0f},
|
||||||
|
{4304.75f, 3041.57f, 372.43f, 0.0f},
|
||||||
{4281.30f, 3041.77f, 372.78f, 0.0f},
|
{4281.30f, 3041.77f, 372.78f, 0.0f},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3065,6 +3067,8 @@ public:
|
|||||||
me->SetWalk(false);
|
me->SetWalk(false);
|
||||||
events.Reset();
|
events.Reset();
|
||||||
events.ScheduleEvent(1, 3s, 6s); // leaping face maul
|
events.ScheduleEvent(1, 3s, 6s); // leaping face maul
|
||||||
|
if (currPipeWP != VENGEFUL_WP_COUNT)
|
||||||
|
needMove = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void JustReachedHome() override
|
void JustReachedHome() override
|
||||||
@@ -3132,7 +3136,7 @@ public:
|
|||||||
--currPipeWP;
|
--currPipeWP;
|
||||||
}
|
}
|
||||||
me->SetHomePosition(VengefulWP[currPipeWP].GetPositionX(), VengefulWP[currPipeWP].GetPositionY(), VengefulWP[currPipeWP].GetPositionZ(), me->GetOrientation());
|
me->SetHomePosition(VengefulWP[currPipeWP].GetPositionX(), VengefulWP[currPipeWP].GetPositionY(), VengefulWP[currPipeWP].GetPositionZ(), me->GetOrientation());
|
||||||
if ((forward && currPipeWP == 3) || (!forward && currPipeWP == 2))
|
if ((forward && currPipeWP == 4) || (!forward && currPipeWP == 3))
|
||||||
me->GetMotionMaster()->MoveJump(VengefulWP[currPipeWP].GetPositionX(), VengefulWP[currPipeWP].GetPositionY(), VengefulWP[currPipeWP].GetPositionZ(), 10.0f, 6.0f, 1);
|
me->GetMotionMaster()->MoveJump(VengefulWP[currPipeWP].GetPositionX(), VengefulWP[currPipeWP].GetPositionY(), VengefulWP[currPipeWP].GetPositionZ(), 10.0f, 6.0f, 1);
|
||||||
else
|
else
|
||||||
me->GetMotionMaster()->MovePoint(1, VengefulWP[currPipeWP].GetPositionX(), VengefulWP[currPipeWP].GetPositionY(), VengefulWP[currPipeWP].GetPositionZ());
|
me->GetMotionMaster()->MovePoint(1, VengefulWP[currPipeWP].GetPositionX(), VengefulWP[currPipeWP].GetPositionY(), VengefulWP[currPipeWP].GetPositionZ());
|
||||||
|
|||||||
Reference in New Issue
Block a user