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:
parent
9e7b459882
commit
f9781ffb47
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user