fheroes2
fheroes2 copied to clipboard
Adventure map, AI behavior, AI castle defenseless despite a threat (0.9.20 5949)
Preliminary checks
- [X] I've checked that there aren't other open issues on the same topic.
Describe the problem requiring a solution
In fheroes2, there is AI castle defenseless despite a threat.
In fheroes2:
https://user-images.githubusercontent.com/43583994/200174726-3bbc1905-39f6-4ebe-a90b-bf15dc263826.mp4
Here is the save file: No troop defense 01.zip
Describe the possible solution
Make the AI defend its castles if it is possible and worthwhile. In the example, the available creatures could have caused the castle to be preserved or at least inflicted significant losses on the attacker.
Additional info
No response
The behavior I've currently observed is that the AI will defend it's castle for one day exactly and then the next day it will move out. It seems we need to have it defend for as long as the threat is in the nearby area.
Hi @LeHerosInconnu , is it still valid for the current build?
Hello @ihhub,
Hi @LeHerosInconnu , is it still valid for the current build?
I'm going to take a look at it in my current game (started with version 1.0.5 7308).
Hello @ihhub,
Hello @ihhub,
Hi @LeHerosInconnu , is it still valid for the current build?
I'm going to take a look at it in my current game (started with version 1.0.5 7308).
So, I tested this in my latest game (started with version 1.0.5 7308 and continued with version 1.0.5 7339) and AI is better at protecting its threatened castles.
Closing this issue as we improved castle defense logic since 1.0.5 release which was good enough for the topic creator.