Răsfoiți Sursa

Let's cast combat spells again.

Frank Zago 16 ani în urmă
părinte
comite
68d106ff1a
1 a modificat fișierele cu 1 adăugiri și 3 ștergeri
  1. 1 3
      server/CGameHandler.cpp

+ 1 - 3
server/CGameHandler.cpp

@@ -2393,8 +2393,6 @@ bool CGameHandler::makeCustomAction( BattleAction &ba )
 				|| (h->mana < s->costs[skill]) //not enough mana
 				|| (ba.additionalInfo < 10) //it's adventure spell (not combat)
 				|| (gs->curB->castedSpells[ba.side]) //spell has been casted
-				|| (secondHero && secondHero->hasBonusOfType(HeroBonus::SPELL_IMMUNITY, s->id)) //non - casting hero provides immunity for this spell
-				|| (h->valOfBonuses(HeroBonus::BLOCK_SPELLS_ABOVE_LEVEL) <= s->level) //caster's 'bonus' prevents him from casting this spell
 				|| (gs->battleMaxSpellLevel() < s->level) //non - casting hero stops caster from casting this spell
 				)
 			{
@@ -2619,4 +2617,4 @@ bool CGameHandler::isAllowedExchange( int id1, int id2 )
 	}
 
 	return false;
-}
+}