1
0
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:
DjWarmonger
2010-10-02 07:10:38 +00:00
parent 2866222280
commit 02d7fa35b7
4 changed files with 13 additions and 7 deletions

View File

@ -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;