|
@@ -1331,7 +1331,8 @@ void CGameHandler::newTurn()
|
|
|
|
|
|
NewTurn::Hero hth;
|
|
|
hth.id = h->id;
|
|
|
- hth.move = h->maxMovePoints(gs->map->getTile(h->getPosition(false)).terType != ETerrainType::WATER);
|
|
|
+ // TODO: this code executed when bonuses of previous day not yet updated (this happen in NewTurn::applyGs). See issue 2356
|
|
|
+ hth.move = h->maxMovePoints(gs->map->getTile(h->getPosition(false)).terType != ETerrainType::WATER, new TurnInfo(h, 1));
|
|
|
|
|
|
if(h->visitedTown && h->visitedTown->hasBuilt(BuildingID::MAGES_GUILD_1)) //if hero starts turn in town with mage guild
|
|
|
hth.mana = std::max(h->mana, h->manaLimit()); //restore all mana
|