1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Creature abilities won't spawn in random Pandora Boxes.

This commit is contained in:
DjWarmonger 2015-06-10 14:27:53 +02:00
parent 9e7b459882
commit f9781ffb47

View File

@ -2582,7 +2582,7 @@ void CRmgTemplateZone::addAllPossibleObjects(CMapGenerator* gen)
std::vector <CSpell *> spells;
for (auto spell : VLC->spellh->objects)
{
if (!spell->isSpecialSpell() && spell->level == i)
if (!spell->isSpecialSpell() && !spell->isCreatureAbility() && spell->level == i)
spells.push_back(spell);
}
@ -2613,7 +2613,7 @@ void CRmgTemplateZone::addAllPossibleObjects(CMapGenerator* gen)
for (auto spell : VLC->spellh->objects)
{
if (!spell->isSpecialSpell() && spell->school[(ESpellSchool)i])
if (!spell->isSpecialSpell() && !spell->isCreatureAbility() &&spell->school[(ESpellSchool)i])
spells.push_back(spell);
}
@ -2642,7 +2642,7 @@ void CRmgTemplateZone::addAllPossibleObjects(CMapGenerator* gen)
std::vector <CSpell *> spells;
for (auto spell : VLC->spellh->objects)
{
if (!spell->isSpecialSpell())
if (!spell->isSpecialSpell() && !spell->isCreatureAbility())
spells.push_back(spell);
}