Răsfoiți Sursa

Disallow rising spells for genie

AlexVinS 11 ani în urmă
părinte
comite
499a281dfe
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      lib/CBattleCallback.cpp

+ 1 - 1
lib/CBattleCallback.cpp

@@ -2224,7 +2224,7 @@ SpellID CBattleInfoCallback::getRandomBeneficialSpell(const CStack * subject) co
 
 
 	for(const CSpell *spell : VLC->spellh->objects)
 	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)
 			if (subject->hasBonusFrom(Bonus::SPELL_EFFECT, spell->id)
 				|| battleCanCastThisSpellHere(subject->owner, spell, ECastingMode::CREATURE_ACTIVE_CASTING, subject->position) != ESpellCastProblem::OK)
 				|| battleCanCastThisSpellHere(subject->owner, spell, ECastingMode::CREATURE_ACTIVE_CASTING, subject->position) != ESpellCastProblem::OK)