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

Fix removing STACK_GETS_TURN bonuses

* this should fix some crashes with FRENZY spell
This commit is contained in:
AlexVinS
2015-04-13 09:43:46 +03:00
parent 45a3ad94ae
commit b1837d0311

View File

@ -1110,7 +1110,7 @@ DLL_LINKAGE void BattleSetActiveStack::applyGs( CGameState *gs )
CStack *st = gs->curB->getStack(stack);
//remove bonuses that last until when stack gets new turn
st->getBonusList().remove_if(Bonus::UntilGetsTurn);
st->popBonuses(Bonus::UntilGetsTurn);
if(vstd::contains(st->state,EBattleStackState::MOVED)) //if stack is moving second time this turn it must had a high morale bonus
st->state.insert(EBattleStackState::HAD_MORALE);