|
@@ -58,9 +58,6 @@ std::vector<Component> CRewardableObject::loadComponents(const CGHeroInstance *
|
|
|
if (rewardIndices.empty())
|
|
|
return result;
|
|
|
|
|
|
- if (!configuration.showScoutedPreview)
|
|
|
- return result;
|
|
|
-
|
|
|
if (configuration.selectMode != Rewardable::SELECT_FIRST)
|
|
|
{
|
|
|
for (auto index : rewardIndices)
|
|
@@ -317,6 +314,9 @@ std::vector<Component> CRewardableObject::getPopupComponentsImpl(PlayerColor pla
|
|
|
if (!wasScouted(player))
|
|
|
return {};
|
|
|
|
|
|
+ if (!configuration.showScoutedPreview)
|
|
|
+ return {};
|
|
|
+
|
|
|
auto rewardIndices = getAvailableRewards(hero, Rewardable::EEventType::EVENT_FIRST_VISIT);
|
|
|
if (rewardIndices.empty() && !configuration.info.empty())
|
|
|
rewardIndices.push_back(0);
|