Skip to content

Fix the Hunter bot from returning to melee range after getting into it once#3318

Open
IamTirion wants to merge 2 commits intovmangos:developmentfrom
IamTirion:patch-9
Open

Fix the Hunter bot from returning to melee range after getting into it once#3318
IamTirion wants to merge 2 commits intovmangos:developmentfrom
IamTirion:patch-9

Conversation

@IamTirion
Copy link
Copy Markdown
Contributor

@IamTirion IamTirion commented Mar 31, 2026

🍰 Pullrequest

In the current version, once a Hunter bot gets into melee range, it retreats, then tries to get back to melee range. This PR fixes that. The Hunter bot will now stay at proper range after retreating. The range they stay at can be lower or higher, but that's up for debate.

The problem is that somewhere in the code, the Hunter bot is made to execute the MoveChase function without specifying the distance, which brings it to melee range. And then it executes the RunAwayFromTarget function again, making it a loop.

How2Test

Bring a Hunter bot to melee range to a Training Dummy on GM Island, then order it to attack.

@IamTirion IamTirion closed this Apr 3, 2026
@IamTirion IamTirion reopened this Apr 5, 2026
@IamTirion IamTirion changed the title Makes the Hunter bot stop returning to melee range Fix the Hunter bot from returning to melee range after getting into it once Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant