Core/Creature: Use proper name for wander distance.

Port From (https://github.com/TrinityCore/TrinityCore/commit/72093e98e1bdbd3b83d8030d1cb50306bb04b028)
This commit is contained in:
hondacrx
2022-01-07 09:33:54 -05:00
parent fa5dae93cc
commit c6186f17bd
10 changed files with 40 additions and 33 deletions
+2 -2
View File
@@ -536,10 +536,10 @@ namespace Game.Movement
Add(new FollowMovementGenerator(target, SharedConst.PetFollowDist, new ChaseAngle(SharedConst.PetFollowAngle)));
}
public void MoveRandom(float spawndist = 0.0f)
public void MoveRandom(float wanderDistance = 0.0f)
{
if (_owner.IsTypeId(TypeId.Unit))
Add(new RandomMovementGenerator(spawndist));
Add(new RandomMovementGenerator(wanderDistance), MovementSlot.Default);
}
public void MoveFollow(Unit target, float dist, float angle = 0.0f, MovementSlot slot = MovementSlot.Active) { MoveFollow(target, dist, new ChaseAngle(angle), slot); }