mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Fix garrisons hero
This commit is contained in:
@@ -444,7 +444,7 @@ void CTownRewardableBuilding::onHeroVisit(const CGHeroInstance *h) const
|
||||
cb->showBlockingDialog(&sd);
|
||||
};
|
||||
|
||||
if(!town->hasBuilt(bID))
|
||||
if(!town->hasBuilt(bID) || cb->isVisitCoveredByAnotherQuery(town, h))
|
||||
return;
|
||||
|
||||
if(!wasVisitedBefore(h))
|
||||
@@ -496,7 +496,7 @@ void CTownRewardableBuilding::onHeroVisit(const CGHeroInstance *h) const
|
||||
if (!visitedRewards.empty())
|
||||
grantRewardWithMessage(visitedRewards[0]);
|
||||
else
|
||||
logMod->warn("No applicable message for visiting already visited object!");
|
||||
logMod->debug("No applicable message for visiting already visited object!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user