|
@@ -127,7 +127,7 @@ void Heal::prepareHealEffect(int64_t value, BattleUnitsChanged & pack, BattleLog
|
|
else if (unitHPgained > 0 && m->caster->getHeroCaster() == nullptr) //Show text about healed HP if healed by unit
|
|
else if (unitHPgained > 0 && m->caster->getHeroCaster() == nullptr) //Show text about healed HP if healed by unit
|
|
{
|
|
{
|
|
MetaString healText;
|
|
MetaString healText;
|
|
- auto casterUnit = dynamic_cast<const battle::CUnitState*>(m->caster)->acquire();
|
|
|
|
|
|
+ auto casterUnit = dynamic_cast<const battle::Unit*>(m->caster);
|
|
healText.addTxt(MetaString::GENERAL_TXT, 414);
|
|
healText.addTxt(MetaString::GENERAL_TXT, 414);
|
|
casterUnit->addNameReplacement(healText, false);
|
|
casterUnit->addNameReplacement(healText, false);
|
|
state->addNameReplacement(healText, false);
|
|
state->addNameReplacement(healText, false);
|