1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

CGameHandler::applyBattleEffects: improve Fire Shield support

Now damage is limited to total health of defending stack and clone have no file shield damage. In same time damage calculation is likely remain incorrect.
This commit is contained in:
Arseniy Shestakov
2016-03-14 15:28:17 +03:00
parent 4240ecad01
commit 2e70d29479
3 changed files with 12 additions and 2 deletions

View File

@ -988,6 +988,11 @@ const CGHeroInstance * CStack::getMyHero() const
return nullptr;
}
ui32 CStack::totalHelth() const
{
return (MaxHealth() * (count-1)) + firstHPleft;
}
std::string CStack::nodeName() const
{
std::ostringstream oss;