Add a config to control slave attack range independently from followDistanceMax
@Henrybk is already working on this.
Since Apr 1, 2026.
- Dominant language
- Perl
- Stars
- 1.5k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the solution you'd like
Currently, the slave uses followDistanceMax to control how far it will attack monsters from the master position, as seen in Misc.pm:
https://github.com/OpenKore/openkore/blob/a99517618f5d51569873e2135057cff799cccdac/src/Misc.pm#L3225-L3247
Problem:
When followDistanceMax is set to 1, this causes two issues:
-
The check only happens once at the time the master starts attacking the monster and the distance between master and monster exceeds
followDistanceMax. The slave won't attack the monster even when the monster is moving inside range. In my testing, the slave eventually attacks, but it took around 10 seconds after the master's first hit. -
When both the monster (e.g. Cruiser) and the master (e.g. Archer) are ranged attackers and the distance between them exceeds
followDistanceMax, the slave never attacks the monster even after waiting 30 seconds. Only when the master and monster distance comes withinfollowDistanceMaxdoes the slave start attacking.
Proposed Solution:
Add a new config option followAttackDistance <range> to control slave attack range independently from follow behavior.
- If
followAttackDistance 0, the slave falls back to using followDistanceMax
Additional context
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.