ihhub/fheroes2

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

Ouverte

#8 792 ouverte le 1 juin 2024

 (2 commentaires) (0 réaction) (0 personne assignée)C++ (469 forks)auto 404
aihelp wantedimprovement

Métriques du dépôt

Stars
 (3 415 étoiles)
Métriques de merge PR
 (Merge moyen 5j 15h) (10 PRs mergées en 30 j)

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

Guide contributeur