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

Combat, AI behavior, Iron Golems move without attacking during a combat (0.9.20 5949) #6097

Open LeHerosInconnu opened 1 year ago

LeHerosInconnu commented 1 year ago

Preliminary checks

Describe the problem requiring a solution

In fheroes2, Iron Golems move without attacking during a combat.

In fheroes2:

https://user-images.githubusercontent.com/43583994/200128878-e0456e31-3479-4280-b60b-d32322cdd2de.mp4

Here is the save file: Before troop no attack 01.zip

Describe the possible solution

Is this intentional because the Knight hero has a strong attack and a strong defense?

Additional info

No response

zenseii commented 1 year ago

This reminds we of one tyoe of behavior I saw in a recent stream where it was obvious that the AI troops were retreating back to their side of the battlefield to defend their own shooter and didn't think to attack any troops on their way back.

Not sure this was the plan of the iron golem to protect the mage and it fogets that it can attack along the way.