Browse Source

there can`t be resistance to rising spell (immunities are handled seperately)

AlexVinS 11 years ago
parent
commit
ababd0d995
1 changed files with 3 additions and 5 deletions
  1. 3 5
      server/CGameHandler.cpp

+ 3 - 5
server/CGameHandler.cpp

@@ -4223,16 +4223,14 @@ void CGameHandler::handleSpellCasting( SpellID spellID, int spellLvl, BattleHex
 				int unitSpellPower = stack->valOfBonuses(Bonus::SPECIFIC_SPELL_POWER, spellID.toEnum());
 				if (unitSpellPower)
 					hpGained = stack->count * unitSpellPower; //Archangel
-				else //Faerie Dragon-like effect - unused fo far
+				else //Faerie Dragon-like effect - unused so far
 					usedSpellPower = stack->valOfBonuses(Bonus::CREATURE_SPELL_POWER) * stack->count / 100;
 			}
 			StacksHealedOrResurrected shr;
-			shr.lifeDrain = (ui8)false;
-			shr.tentHealing = (ui8)false;
+			shr.lifeDrain = false;
+			shr.tentHealing = false;
 			for(auto & attackedCre : attackedCres)
 			{
-				if(vstd::contains(sc.resisted, (attackedCre)->ID)) //this creature resisted the spell					
-					continue;
 				StacksHealedOrResurrected::HealInfo hi;
 				hi.stackID = (attackedCre)->ID;
 				if (stack) //casted by creature