1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Fix: Morale bonus should be shown correctly

This commit is contained in:
Dmitry Orlov
2020-11-11 22:43:40 +03:00
parent 9ca9c809c6
commit 39de2f6435
27 changed files with 281 additions and 196 deletions

View File

@@ -1310,7 +1310,7 @@ DLL_LINKAGE void BattleTriggerEffect::applyGs(CGameState *gs)
case Bonus::POISON:
{
auto b = st->getBonusLocalFirst(Selector::source(Bonus::SPELL_EFFECT, SpellID::POISON)
.And(Selector::type(Bonus::STACK_HEALTH)));
.And(Selector::type()(Bonus::STACK_HEALTH)));
if (b)
b->val = val;
break;
@@ -1601,7 +1601,7 @@ DLL_LINKAGE void BattleSetStackProperty::applyGs(CGameState * gs)
}
case UNBIND:
{
stack->removeBonusesRecursive(Selector::type(Bonus::BIND_EFFECT));
stack->removeBonusesRecursive(Selector::type()(Bonus::BIND_EFFECT));
break;
}
case CLONED: