mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
- added battleAI to CMake, compile fixes
- icons config for towns and creatures
This commit is contained in:
@ -2789,7 +2789,7 @@ DuelParameters DuelParameters::fromJSON(const std::string &fname)
|
||||
|
||||
if(ss.heroId != -1)
|
||||
{
|
||||
auto spells = n["spells"];
|
||||
const JsonNode & spells = n["spells"];
|
||||
if(spells.getType() == JsonNode::DATA_STRING && spells.String() == "all")
|
||||
BOOST_FOREACH(auto spell, VLC->spellh->spells)
|
||||
ss.spells.insert(spell->id);
|
||||
|
Reference in New Issue
Block a user