1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00

Update Nullkiller.cpp

ResetAIState so that units realize what they can do after unlocking a cluster.
This commit is contained in:
Xilmi 2024-09-01 17:21:53 +02:00
parent 1ef5e8ab1b
commit 0e91f10bbc

View File

@ -369,6 +369,8 @@ void Nullkiller::makeTurn()
for(int i = 1; i <= settings->getMaxPass() && cb->getPlayerStatus(playerID) == EPlayerStatus::INGAME; i++)
{
auto start = std::chrono::high_resolution_clock::now();
//TODO: It's only necessary to do a resetAiState when the last action was UnlockCluster
resetAiState();
updateAiState(i);
Goals::TTask bestTask = taskptr(Goals::Invalid());