mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 11:21:58 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user