mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Do not allow special spells such as Titan Bolt as a reward
This commit is contained in:
parent
07e7d6cc14
commit
9d298f42c3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user