ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.68k stars 373 forks source link

AI heroes on patrol do not return to starting position #2315

Open Branikolog opened 3 years ago

Branikolog commented 3 years ago

We have multiple AI heroes standing on this map. When my hero comes too close AI hero starts moving over world map, attacks him and goes away later. At this screenshot nothing happens. image At this one AI hero attacks. image Then he goes up, and starts collecting gold piles. He makes it in strange manner killing guarding druids and returning back to sign. Then AI hero collects 1 pile and then return back to sign. After he return to sign, he stands still. (on a screenshot he stands on a sign) image AI standing.zip

ihhub commented 3 years ago

@Branikolog , could you please verify this issue since we change AI a lot?

Branikolog commented 3 years ago

I think now it became much better. But comparing to OG I still recognize some differences: On this map we have multiple patrol heroes. In the OG they are trying to keep basic position. They can definitely move, but always tend to return back. In fheroes2, I feel, they can stand any place within patrol area without moving back.

ihhub commented 1 year ago

Hi @Branikolog , could you please verify this issue if it is valid or close it if it has been fixed?

Branikolog commented 1 year ago

Hi, @ihhub !

The issue is still valid. Once patrol hero made all possible actions within his radius he's standing still. In the OG he tends to take his initial location, when he gather all resources, visit all objects etc.