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.66k stars 371 forks source link

Adventure map, an AI hero moves adjacent to a wandering troop of Mutant Zombies without an attack being initiated when it should #4324

Closed LeHerosInconnu closed 2 years ago

LeHerosInconnu commented 2 years ago

Preliminary checks

Platform

Windows

Describe the bug

In fheroes2, an AI hero moves adjacent to a wandering troop of Mutant Zombies without an attack being initiated when it should.

In original game:

Attack dwarves near mountains 01

In fheroes2:

vlcsnap-2021-10-05-17h35m35s144

https://user-images.githubusercontent.com/43583994/136056823-4e76d0a9-956f-4516-bdf5-ffc96370dd5f.mp4

End the turn.

Save file

Here is the save file: Dominion_0041.zip

Additional info

Version 0.9.7 4306

oleg-derevenetz commented 2 years ago

That's because cell with the hero is not accessible directly/diagonally from the cell occupied by Zombies in fheroes2:

Inaccessible

and Zombies naturally cannot attack the cell that is not accessible by them. Looks like another passability issue/difference.