mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Temp fix for blocked in garrison ai.
This commit is contained in:
parent
e484066772
commit
38a98387e4
@ -879,7 +879,7 @@ void AINodeStorage::setHeroes(std::map<const CGHeroInstance *, HeroRole> heroes)
|
||||
for(auto & hero : heroes)
|
||||
{
|
||||
// do not allow our own heroes in garrison to act on map
|
||||
if(hero.first->getOwner() == ai->playerID && hero.first->inTownGarrison)
|
||||
if(hero.first->getOwner() == ai->playerID && hero.first->inTownGarrison && ai->isHeroLocked(hero.first))
|
||||
continue;
|
||||
|
||||
uint64_t mask = FirstActorMask << actors.size();
|
||||
|
Loading…
Reference in New Issue
Block a user