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.
The bots are mounting a bit too close to their target, and I have proven this with math :-P
I could've figured this out without using excel, but my brain was hurting from work... Anyway below distance of 21 mounting takes more time than just walking to the destination (due to time it takes to cast mount spell), and so with this change the bots will no longer mount when target is within that distance.
I also noticed that warriors will ride up to target before dismounting, but it is far better for warriors to open the fight with a charge (for the stun and the starting rage) so I've set minimum dismount distance for warriors to 18 (any closer than that and charge still wont happen most of the time due to delay in dis/mounting code being checked).