1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

- Fix for hero specialties (creature type limiters)

- Improved handling of new heroes / arts, check forum for fresh mod packages :)
This commit is contained in:
DjWarmonger
2013-01-20 16:31:18 +00:00
parent 1cab54b87a
commit fff7909958
5 changed files with 22 additions and 16 deletions

View File

@@ -991,9 +991,7 @@ Bonus * JsonUtils::parseBonus (const JsonNode &ability)
if (!value->isNull())
b->valType = parseByMap(bonusValueMap, value, "value type ");
value = &ability["additionalInfo"];
if (!value->isNull())
b->additionalInfo = value->Float();
resolveIdentifier (b->additionalInfo, ability, "addInfo");
value = &ability["turns"];
if (!value->isNull())