As introduced by rP13132: when animals are hunting, they might need to attack the target.
If the target is invisible, they first walk to the last known position. If the target is then still invisible, they finish their order.
This behaviour however makes them go idle instead of going through the behaviour of finding a new target.
Running a replay (see attached, rP22466) where a Nabatean Camel Archer hunted a deer (2406, the one going to the right), it ended up idle after losing the animal in LOS.
There are then two issues:
- first, the LastPos of the gather order isn't up-to-date (since we updated the one in COMBAT.APPROACHING instead), so the unit goes back to the herd position instead of trying to go to the actual last known position.
- once there, it goes through the above described pattern and ends up idle, when there are perfectly good deer around.
This fixes the second issue by falling back to a GatherNearPosition order.