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 360 forks source link

AI doesn't take into an account Troll's regenerative abilities #8792

Open ihhub opened 1 month ago

ihhub commented 1 month ago

Preliminary checks

Describe the problem requiring a solution

AI doesn't take into an account Troll's regenerative abilities leading to waste of shooter's arrows. Attack the nearest castle and use autobattle mode to see what happens: Rangers waste shots on Trolls.

Aventerra_0025.zip

Describe the possible solution

Make AI to not to waste shots for such cases: the simplest check would be if no magic exist and it is the last shooter to hit the enemy.

Additional info

No response