1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-31 00:07:39 +02:00

Disallow rising spells for genie

This commit is contained in:
AlexVinS
2014-11-28 21:08:34 +03:00
parent e583f4e44d
commit 499a281dfe

View File

@@ -2224,7 +2224,7 @@ SpellID CBattleInfoCallback::getRandomBeneficialSpell(const CStack * subject) co
for(const CSpell *spell : VLC->spellh->objects)
{
if (spell->isPositive()) //only positive
if (spell->isPositive() && !spell->isRisingSpell()) //only positive and not rising
{
if (subject->hasBonusFrom(Bonus::SPELL_EFFECT, spell->id)
|| battleCanCastThisSpellHere(subject->owner, spell, ECastingMode::CREATURE_ACTIVE_CASTING, subject->position) != ESpellCastProblem::OK)