mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Adventure map spells are no longer visible on units in battle
This commit is contained in:
parent
9882c37ce3
commit
4dc16b9ff7
@ -5,6 +5,7 @@
|
||||
* Fixed empty Black Market on game start
|
||||
* Fixed bad morale happening after waiting
|
||||
* Fixed good morale happening after defeating last enemy unit
|
||||
* Adventure map spells are no longer visible on units in battle
|
||||
* RMG settings will now show all existing in game templates and not just those suitable for current settings
|
||||
* RMG settings (map size and two-level maps) that are not compatible with current template will be blocked
|
||||
* Fixed centering of scenario information window
|
||||
|
@ -133,7 +133,7 @@ std::vector<si32> CStack::activeSpells() const
|
||||
CSelector selector = Selector::sourceType()(Bonus::SPELL_EFFECT)
|
||||
.And(CSelector([](const Bonus * b)->bool
|
||||
{
|
||||
return b->type != Bonus::NONE;
|
||||
return b->type != Bonus::NONE && SpellID(b->sid).toSpell() && !SpellID(b->sid).toSpell()->isAdventure();
|
||||
}));
|
||||
|
||||
TConstBonusListPtr spellEffects = getBonuses(selector, Selector::all, cachingStr.str());
|
||||
|
Loading…
Reference in New Issue
Block a user