1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

fixed and cleanup

This commit is contained in:
AlexVinS
2017-07-08 21:20:38 +03:00
parent 4f14f22d3a
commit 7bf8c9bd69
5 changed files with 19 additions and 20 deletions

View File

@ -710,9 +710,8 @@ void CPlayerInterface::battleStacksHealedRes(const std::vector<std::pair<ui32, u
battleInt->displayEffect(52, attacker->position); //TODO: transparency
CCS->soundh->playSound(soundBase::DRAINLIF);
int textID = CGI->generaltexth->pluralText(361, attacker->getCount());
MetaString text;
text.addTxt(MetaString::GENERAL_TXT, textID);
attacker->addText(text, MetaString::GENERAL_TXT, 361);
attacker->addNameReplacement(text, false);
text.addReplacement(healedStacks[0].second);
defender->addNameReplacement(text, true);