Core/Movement: Extend MovePoint with new arguments

* Forced speed
* Speed selection mode (walk, run or default)
* Distance from target point that is considered close enough to finalize movement
This commit is contained in:
Shauren
2023-03-02 23:24:42 +01:00
parent 7209f1cbf9
commit 0026706e83
7 changed files with 126 additions and 111 deletions

View File

@@ -242,7 +242,7 @@ struct boss_lord_marrowgar : public BossAI
{
if (a->GetMovementGeneratorType() == POINT_MOTION_TYPE)
{
PointMovementGenerator<Creature> const* pointMovement = dynamic_cast<PointMovementGenerator<Creature> const*>(a);
PointMovementGenerator const* pointMovement = dynamic_cast<PointMovementGenerator const*>(a);
return pointMovement && pointMovement->GetId() == POINT_TARGET_BONESTORM_PLAYER;
}
return false;