mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
NK: fix AI speed
This commit is contained in:
@@ -72,4 +72,9 @@ Composition & Composition::addNext(TSubgoal goal)
|
||||
bool Composition::isElementar() const
|
||||
{
|
||||
return subtasks.back()->isElementar();
|
||||
}
|
||||
|
||||
int Composition::getHeroExchangeCount() const
|
||||
{
|
||||
return isElementar() ? taskptr(*subtasks.back())->getHeroExchangeCount() : 0;
|
||||
}
|
||||
Reference in New Issue
Block a user