mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Fuzzy rework, added more defence and gather army routines
This commit is contained in:
@@ -71,7 +71,7 @@ void BuyArmy::accept(AIGateway * ai)
|
||||
throw cannotFulfillGoalException("No creatures to buy.");
|
||||
}
|
||||
|
||||
if(town->visitingHero)
|
||||
if(town->visitingHero && !town->garrisonHero)
|
||||
{
|
||||
ai->moveHeroToTile(town->visitablePos(), town->visitingHero.get());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user