mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
A number of fixes. Banks serialization, doubling spell effects, week of plague.
This commit is contained in:
@ -969,7 +969,8 @@ std::vector<si32> CStack::activeSpells() const
|
||||
BonusList spellEffects = getSpellBonuses();
|
||||
for(BonusList::const_iterator it = spellEffects.begin(); it != spellEffects.end(); it++)
|
||||
{
|
||||
ret.push_back(it->id);
|
||||
if (!vstd::contains(ret, it->id)) //do not duplicate spells with multiple effects
|
||||
ret.push_back(it->id);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user