mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
Fix typos using https://github.com/crate-ci/typos
Changes were reviewed manually
This commit is contained in:
@@ -34,13 +34,13 @@ void BuyArmy::accept(AIGateway * ai)
|
||||
ui64 valueBought = 0;
|
||||
//buy the stacks with largest AI value
|
||||
|
||||
auto upgradeSuccessfull = ai->makePossibleUpgrades(town);
|
||||
auto upgradeSuccessful = ai->makePossibleUpgrades(town);
|
||||
|
||||
auto armyToBuy = ai->nullkiller->armyManager->getArmyAvailableToBuy(town->getUpperArmy(), town);
|
||||
|
||||
if(armyToBuy.empty())
|
||||
{
|
||||
if(upgradeSuccessfull)
|
||||
if(upgradeSuccessful)
|
||||
return;
|
||||
|
||||
throw cannotFulfillGoalException("No creatures to buy.");
|
||||
|
||||
@@ -234,7 +234,7 @@ void ExecuteHeroChain::accept(AIGateway * ai)
|
||||
if(node->turns == 0)
|
||||
{
|
||||
logAi->error(
|
||||
"Unable to complete chain. Expected hero %s to arive to %s but he is at %s",
|
||||
"Unable to complete chain. Expected hero %s to arrive to %s but he is at %s",
|
||||
hero->getNameTranslated(),
|
||||
node->coord.toString(),
|
||||
hero->visitablePos().toString());
|
||||
|
||||
Reference in New Issue
Block a user