mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Do not allow special spells such as Titan Bolt as a reward
This commit is contained in:
@ -406,7 +406,7 @@ namespace JsonRandom
|
||||
{
|
||||
std::set<SpellID> defaultSpells;
|
||||
for(const auto & spell : VLC->spellh->objects)
|
||||
if (IObjectInterface::cb->isAllowed(spell->getId()))
|
||||
if (IObjectInterface::cb->isAllowed(spell->getId()) && !spell->isSpecial())
|
||||
defaultSpells.insert(spell->getId());
|
||||
|
||||
std::set<SpellID> potentialPicks = filterKeys(value, defaultSpells, variables);
|
||||
|
Reference in New Issue
Block a user