1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-29 00:41:38 +02:00

Initial version of bonus system usage guide

This commit is contained in:
Ivan Savenko
2025-06-06 14:10:30 +03:00
parent 8f0bca05de
commit 5bc27d3d90
5 changed files with 203 additions and 7 deletions

View File

@ -1054,7 +1054,7 @@ std::shared_ptr<CSpell> CSpellHandler::loadFromJson(const std::string & scope, c
levelObject.cumulativeEffects.push_back(b);
}
if(levelNode["battleEffects"].getType() == JsonNode::JsonType::DATA_STRUCT && !levelNode["battleEffects"].Struct().empty())
if(!levelNode["battleEffects"].Struct().empty())
{
levelObject.battleEffects = levelNode["battleEffects"];