Fix monster follow creature
Pull Request Prelude
- [x] I have followed proper The Forgotten Server code styling.
- [x] I have read and understood the contribution guidelines before making this PR.
- [x] I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.
Changes Proposed
- Fix https://github.com/otland/forgottenserver/issues/4865, introduced in https://github.com/otland/forgottenserver/pull/4811. close https://github.com/otland/forgottenserver/pull/4866
Something is still broken with creatures that do not attack, like rabbit. (hostile="0") Instead of fleeing, they take one step at a time. It looks like they are random stepping and not running away. To me it looks like they aren't even considering me as a target to run from. It works fine with fleeing creatures on low health like dragon.
https://github.com/user-attachments/assets/60c2fdfa-9e94-453a-8e68-eec17b616dab
I reproduced the same problem here, Im trying to find the PR, even reverting #4811, same problem
After back some PR (at #4804), the creature still runs away step-by-step. I also tried revert #4643, same result. #4804 fix problem with vcpkg, without it, an error occurs when compile.
@nekiro any idea?
Linked issue was fixed by #4866. This pr is now obsolete. You can repurpose it to fix #4884 or close.