|
@@ -238,7 +238,7 @@ CStackWindow::ActiveSpellsSection::ActiveSpellsSection(CStackWindow * owner, int
|
|
|
if (spellBonuses->empty())
|
|
|
throw std::runtime_error("Failed to find effects for spell " + effect.toSpell()->getJsonKey());
|
|
|
|
|
|
- int duration = spellBonuses->front()->duration;
|
|
|
+ int duration = spellBonuses->front()->turnsRemain;
|
|
|
boost::replace_first(spellText, "%d", std::to_string(duration));
|
|
|
|
|
|
spellIcons.push_back(std::make_shared<CAnimImage>(AnimationPath::builtin("SpellInt"), effect + 1, 0, firstPos.x + offset.x * printed, firstPos.y + offset.y * printed));
|