Skip to content

Commit

Permalink
Merge branch 'hectorgimenez:main' into global-immune-skip
Browse files Browse the repository at this point in the history
  • Loading branch information
artosimonyan authored Dec 15, 2024
2 parents 8a9c095 + 18b9cbf commit 34179ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/action/step/move.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package step

import (
"errors"
"fmt"
"math"
"time"

Expand Down Expand Up @@ -80,7 +81,7 @@ func MoveTo(dest data.Position) error {
return nil
}

return errors.New("path could not be calculated, maybe there is an obstacle or a flying platform (arcane sanctuary)")
return errors.New("path could not be calculated. Current area: [" + ctx.Data.PlayerUnit.Area.Area().Name + "]. Trying to path to Destination: [" + fmt.Sprintf("%d,%d", dest.X, dest.Y) + "]")
}
if distance <= minDistanceToFinishMoving || len(path) <= minDistanceToFinishMoving || len(path) == 0 {
return nil
Expand Down

0 comments on commit 34179ea

Please sign in to comment.