fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

Combat, Golems decide not to attack dragons and walk away to attack another dragons

Open Branikolog opened this issue 1 year ago • 5 comments

Preliminary checks

Platform

Windows

Describe the bug

https://user-images.githubusercontent.com/55348946/236820594-131245ec-93c5-4137-ada7-33a89721659d.mov

Golems could attack the lowest stack of dragons, but decide to attack another, which requrest two turns to reach, instead of instant attack.

Save file

Scared Golems.zip

Additional info

No response

Branikolog avatar May 08 '23 12:05 Branikolog

Hello @Branikolog,

Golems could attack the lowest stack of dragons, but decide to attack another, which requrest two turns to reach, instead of instant attack.

It seems that the troop of golems is moving in order to attack (next turn) the group of dragons that took the most damage. This may be a good tactic. However, the path to this group of dragons will be blocked by the group of boars anyway (if the AI plays this same tactic of attacking the most damaged group of dragons first). And if this is the case (the group of boars is blocking access to the group of dragons at the top of the screen), attacking the group of dragons at the bottom of the screen (which also suffered some damage) would have been more judicious. Here the AI should be taught to organize his actions over several turns (at least two turns) without his own troops getting in each other's way.

LeHerosInconnu avatar May 08 '23 14:05 LeHerosInconnu

@Branikolog.

When loading the provided save file, I don't get the same obstacle configuration nor the same obstacles on the battlefield, while the configuration should be the same because it's the same square of the adventure map from a save file. This is a bug that I will report. (https://github.com/ihhub/fheroes2/issues/7146)

In fheroes2: Screenshot from the scenario video:

Obstacle type position 002

Screenshot from the saved scenario:

Obstacle type position 001

In your combat: Did the boars block the access? And what did the golems do then?

LeHerosInconnu avatar May 08 '23 15:05 LeHerosInconnu

Hi, @LeHerosInconnu

Hello @Branikolog,

Golems could attack the lowest stack of dragons, but decide to attack another, which requrest two turns to reach, instead of instant attack.

It seems that the troop of golems is moving in order to attack (next turn) the group of dragons that took the most damage. This may be a good tactic. However, the path to this group of dragons will be blocked by the group of boars anyway (if the AI plays this same tactic of attacking the most damaged group of dragons first). And if this is the case (the group of boars is blocking access to the group of dragons at the top of the screen), attacking the group of dragons at the bottom of the screen (which also suffered some damage) would have been more judicious. Here the AI should be taught to organize his actions over several turns (at least two turns) without his own troops getting in each other's way.

Well, Golems could do considerable damage to the lowest stack, but they instead ignored it and rushed the upper one. I suppose, they could only do this only if they do ridiculously low damage and would die from the retaliation. Only then I suppose they could come to the upper location to block somebody or sacrifice for the sake of turning retaliation off.

When supposedly target dragons were blocked, Golems start attacking the nearest one. So the maneuver from the video was useless. :)

Branikolog avatar May 08 '23 17:05 Branikolog

Another exampe I borrowed from a video from youtube:

https://github.com/ihhub/fheroes2/assets/55348946/bbc5ca7e-30c8-4bd4-a144-f184140e6202

Branikolog avatar Jan 27 '24 23:01 Branikolog