1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

* wights won't have regeneration animation played when not alive

This commit is contained in:
mateuszb 2009-09-21 12:44:16 +00:00
parent b29ac50dcb
commit 75c6db7197

View File

@ -2114,13 +2114,13 @@ void CBattleInterface::newRound(int number)
std::map<int, CStack> stacks = LOCPLINT->cb->battleGetStacks();
for(std::map<int, CStack>::const_iterator it = stacks.begin(); it != stacks.end(); ++it)
{
if( it->second.hasFeatureOfType(StackFeature::HP_REGENERATION) )
if( it->second.hasFeatureOfType(StackFeature::HP_REGENERATION) && it->second.alive() )
displayEffect(74, it->second.position);
if( it->second.hasFeatureOfType(StackFeature::FULL_HP_REGENERATION, 0) )
if( it->second.hasFeatureOfType(StackFeature::FULL_HP_REGENERATION, 0) && it->second.alive() )
displayEffect(4, it->second.position);
if( it->second.hasFeatureOfType(StackFeature::FULL_HP_REGENERATION, 1) )
if( it->second.hasFeatureOfType(StackFeature::FULL_HP_REGENERATION, 1) && it->second.alive() )
displayEffect(74, it->second.position);
}
}