瀏覽代碼

Do not allow special spells such as Titan Bolt as a reward

Ivan Savenko 1 年之前
父節點
當前提交
9d298f42c3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/JsonRandom.cpp

+ 1 - 1
lib/JsonRandom.cpp

@@ -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);