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.58k stars 359 forks source link

Adventure map: computer don't want to protect his castle #8769

Open fheroes2bugs opened 1 month ago

fheroes2bugs commented 1 month ago

Preliminary checks

Describe the problem requiring a solution

Red computer don't want to protect his castle, he just runs around like he can't see my hero. And sure in the next turn I will take his castle, and he won't be able to take it back:

https://github.com/ihhub/fheroes2/assets/145407420/b1b5bc70-bb64-4947-bd8c-72da084631c8

Looks like a regression after #8206

Describe the possible solution

Computer must protect his castle.

For example, in this game, if he just stays in town and I will attack him - I will loose the battle.

Additional info

version 1.1.0 suicide.zip