9 June 2021: More pathfinding improvements
Posted: Wed Jun 09, 2021 2:43 pm
Thanks to the input of @Bert and @Nazuths (in this bug report), I managed to fix a couple of other pathing bugs, mostly related to ranged and magic attacks:
- You will no longer walk up to an enemy in certain situations, especially when clicking to walk, eat, drink or switch equipment very quickly after you clicked to attack an enemy.
- When using ranged or magic, you will no longer get stuck when there is an obstacle or the corner of a wall in the way. There were a few situations where the game thinks you can see an enemy and make you stop moving, but then there was another piece of code that thinks you can't actually see them and not let you attack the enemy. These two different mechanics (following and attacking) now use the same code to determine if you can see an enemy, which should prevent this bug from happening again.
- When you click to attack an enemy and eat food, drink a potion or switch equipment, you will now run to the enemy's last known location if you were not yet in attack range when you were eating, drinking or switching. This may seem like a bit of a strange pathing quirk, but it's how it works in OSRS, and as far as pathing and combat mechanics go, we normally try to mimic the OSRS mechanics as much as possible. If you folks disagree and think that you should not run to their last known location in this situation, please let us know and we'll change it.
- You will no longer receive a duplicate rune pouch when suiciding.
- A bug has been fixed where runes would be incorrectly displayed on your rune pouch after you died with a rune pouch in PvP and obtained a new pouch.