mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Fixed action cancel on active stack remove
This commit is contained in:
@ -1009,6 +1009,11 @@ void CBattleInterface::stackRemoved(int stackID)
|
||||
{
|
||||
if(activeStack->ID == stackID)
|
||||
{
|
||||
BattleAction * action = new BattleAction();
|
||||
action->side = defendingHeroInstance ? (curInt->playerID == defendingHeroInstance->tempOwner) : false;
|
||||
action->actionType = Battle::CANCEL;
|
||||
action->stackNumber = activeStack->ID;
|
||||
givenCommand->setn(action);
|
||||
setActiveStack(nullptr);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user