Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Pathfinding to getBestTarget #3957

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Conversation

Henrybk
Copy link
Contributor

@Henrybk Henrybk commented Jan 16, 2025

Currently getBestTarget prioritizes monsters in LOS, but when there are no monsters in LOS and at least 1 monster without LOS it chooses to attack it, without first checking if it is routable, leaving it to be done in Attack.pm.

Since we will do it in Attack.pm anyway why not do it in getBestTarget and prevent the SetTarget > NoLOS > Drop > SetTarget > etc loop?

@Henrybk Henrybk merged commit 7c36baa into master Jan 17, 2025
9 checks passed
@Henrybk Henrybk deleted the addPathfindingtogetBestTarget branch January 17, 2025 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants