ihhub/fheroes2

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

Offen

#8.792 geöffnet am 01.06.2024

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (469 Forks)auto 404
aihelp wantedimprovement

Repository-Metriken

Stars
 (3.415 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 5T 15h) (10 gemergte PRs in 30 T)

Beschreibung

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