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:
parent
1ef5e8ab1b
commit
0e91f10bbc
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user