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:
@ -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
|
||||
|
Reference in New Issue
Block a user