mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
+ Handled banning spells and artifacts
+ Rename allowedSpell => allowedSpells
This commit is contained in:
@@ -784,6 +784,8 @@ CSpell * CSpellHandler::loadFromJson(const std::string & scope, const JsonNode &
|
||||
|
||||
spell->special = flags["special"].Bool();
|
||||
|
||||
spell->onlyOnWaterMap = json["onlyOnWaterMap"].Bool();
|
||||
|
||||
auto findBonus = [&](const std::string & name, std::vector<BonusType> & vec)
|
||||
{
|
||||
auto it = bonusNameMap.find(name);
|
||||
|
||||
Reference in New Issue
Block a user