+ Handled banning spells and artifacts

+ Rename allowedSpell => allowedSpells
This commit is contained in:
Tomasz Zieliński
2023-07-17 17:21:28 +02:00
parent fbd1d728ec
commit 025b0814c8
19 changed files with 101 additions and 44 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ std::list<Validator::Issue> Validator::validate(const CMap * map)
{
if(ins->storedArtifact)
{
if(!map->allowedSpell[ins->storedArtifact->getId().getNum()])
if(!map->allowedSpells[ins->storedArtifact->getId().getNum()])
issues.emplace_back(QString("Spell scroll %1 is prohibited by map settings").arg(ins->getObjectName().c_str()), false);
}
else