mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-19 00:17:56 +02:00
* fixed bugs 66, 74 from VCMI 0.73 bug thread
This commit is contained in:
@ -608,9 +608,9 @@ DLL_EXPORT void BattleNextRound::applyGs( CGameState *gs )
|
||||
s->counterAttacks = 1 + s->valOfFeatures(StackFeature::ADDITIONAL_RETALIATION);
|
||||
|
||||
//regeneration
|
||||
if( s->hasFeatureOfType(StackFeature::HP_REGENERATION) )
|
||||
if( s->hasFeatureOfType(StackFeature::HP_REGENERATION) && s->alive() )
|
||||
s->firstHPleft = std::min<ui32>( s->MaxHealth(), s->valOfFeatures(StackFeature::HP_REGENERATION) );
|
||||
if( s->hasFeatureOfType(StackFeature::FULL_HP_REGENERATION) )
|
||||
if( s->hasFeatureOfType(StackFeature::FULL_HP_REGENERATION) && s->alive() )
|
||||
s->firstHPleft = s->MaxHealth();
|
||||
|
||||
//remove effects and restore only those with remaining turns in duration
|
||||
|
Reference in New Issue
Block a user