Skip to content

Commit

Permalink
Fix walk around movement
Browse files Browse the repository at this point in the history
  • Loading branch information
SDClowen committed Mar 7, 2022
1 parent a926950 commit abdf9a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Botbases/RSBot.Bot.Default/Bundle/Movement/MovementBundle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public void Invoke()
if (playerUnderAttack)
return;

if (Game.Player.Movement.Moving)
return;

var distance = Game.Player.Movement.Source.DistanceTo(Container.Bot.Area.CenterPosition);
var hasCollision = CollisionManager.HasCollisionBetween(Game.Player.Movement.Source, Container.Bot.Area.CenterPosition);

Expand Down

0 comments on commit abdf9a1

Please sign in to comment.