mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
* fixed #72, #242, #252 (all crashes seem to be caused by harpy dying in retaliation and causing end of battle)
This commit is contained in:
parent
2fdc53594b
commit
8447e58c39
@ -2676,9 +2676,10 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
|
||||
}
|
||||
|
||||
//return
|
||||
if(curStack->hasFeatureOfType(StackFeature::RETURN_AFTER_STRIKE) && startingPos != curStack->position)
|
||||
if(curStack->hasFeatureOfType(StackFeature::RETURN_AFTER_STRIKE) && startingPos != curStack->position && curStack->alive())
|
||||
{
|
||||
moveStack(ba.stackNumber, startingPos);
|
||||
//NOTE: curStack->ID == ba.stackNumber (rev 1431)
|
||||
}
|
||||
sendAndApply(&EndAction());
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user