|
@@ -102,7 +102,8 @@ void Rewardable::Reward::loadComponents(std::vector<Component> & comps, const CG
|
|
comps.emplace_back(ComponentType::ARTIFACT, entry);
|
|
comps.emplace_back(ComponentType::ARTIFACT, entry);
|
|
|
|
|
|
for(const auto & entry : spells)
|
|
for(const auto & entry : spells)
|
|
- comps.emplace_back(ComponentType::SPELL, entry);
|
|
|
|
|
|
+ if (!h || h->canLearnSpell(entry.toEntity(VLC), true))
|
|
|
|
+ comps.emplace_back(ComponentType::SPELL, entry);
|
|
|
|
|
|
for(const auto & entry : creatures)
|
|
for(const auto & entry : creatures)
|
|
comps.emplace_back(ComponentType::CREATURE, entry.type->getId(), entry.count);
|
|
comps.emplace_back(ComponentType::CREATURE, entry.type->getId(), entry.count);
|