Fix: Morale bonus should be shown correctly

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

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ std::vector<si32> CStack::activeSpells() const
std::stringstream cachingStr;
cachingStr << "!type_" << Bonus::NONE << "source_" << Bonus::SPELL_EFFECT;
CSelector selector = Selector::sourceType(Bonus::SPELL_EFFECT)
CSelector selector = Selector::sourceType()(Bonus::SPELL_EFFECT)
.And(CSelector([](const Bonus * b)->bool
{
return b->type != Bonus::NONE;