ihhub/fheroes2

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

Open

#8,792 opened on Jun 1, 2024

View on GitHub
 (2 comments) (0 reactions) (0 assignees)C++ (469 forks)auto 404
AIaihelp wantedimprovement

Repository metrics

Stars
 (3,415 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide