Fix the Hunter bot from returning to melee range after getting into it once#3318
Open
IamTirion wants to merge 2 commits intovmangos:developmentfrom
Open
Fix the Hunter bot from returning to melee range after getting into it once#3318IamTirion wants to merge 2 commits intovmangos:developmentfrom
IamTirion wants to merge 2 commits intovmangos:developmentfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🍰 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.