mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Fix missing descriptions for creature abilities spells
This commit is contained in:
@@ -953,7 +953,7 @@ std::shared_ptr<CSpell> CSpellHandler::loadFromJson(const std::string & scope, c
|
|||||||
|
|
||||||
const si32 levelPower = levelObject.power = static_cast<si32>(levelNode["power"].Integer());
|
const si32 levelPower = levelObject.power = static_cast<si32>(levelNode["power"].Integer());
|
||||||
|
|
||||||
if (!spell->isCreatureAbility())
|
if (!levelNode["description"].String().empty())
|
||||||
LIBRARY->generaltexth->registerString(scope, spell->getDescriptionTextID(levelIndex), levelNode["description"]);
|
LIBRARY->generaltexth->registerString(scope, spell->getDescriptionTextID(levelIndex), levelNode["description"]);
|
||||||
|
|
||||||
levelObject.cost = static_cast<si32>(levelNode["cost"].Integer());
|
levelObject.cost = static_cast<si32>(levelNode["cost"].Integer());
|
||||||
|
|||||||
Reference in New Issue
Block a user