1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

Ensure that ghost stacks are created only by BattleStacksRemoved packet.

This will allow client to receive notification.
This commit is contained in:
AlexVinS
2016-03-01 05:24:35 +03:00
parent 5c716f6581
commit 4bf9036c7b
5 changed files with 22 additions and 4 deletions

View File

@ -1164,8 +1164,7 @@ bool CStack::canBeHealed() const
void CStack::makeGhost()
{
state.erase(EBattleStackState::ALIVE);
state.insert(EBattleStackState::GHOST);
detachFromAll();//TODO: may be some bonuses should remain
state.insert(EBattleStackState::GHOST_PENDING);
}
ui32 CStack::calculateHealedHealthPoints(ui32 toHeal, const bool resurrect) const