Browse Source

fix comments

AlexVinS 10 years ago
parent
commit
f66c29ea3b
2 changed files with 3 additions and 2 deletions
  1. 1 1
      lib/BattleState.cpp
  2. 2 1
      lib/spells/BattleSpellMechanics.cpp

+ 1 - 1
lib/BattleState.cpp

@@ -1192,7 +1192,7 @@ ui8 CStack::getSpellSchoolLevel(const CSpell * spell, int * outSelectedSchool) c
 
 ui32 CStack::getSpellBonus(const CSpell * spell, ui32 base, const CStack * affectedStack) const
 {
-	//stacks does not have spellpower etc. (yet?)
+	//stacks does not have sorcery-like bonuses (yet?)
 	return base;
 }
 

+ 2 - 1
lib/spells/BattleSpellMechanics.cpp

@@ -529,7 +529,8 @@ ESpellCastProblem::ESpellCastProblem SpecialRisingSpellMechanics::isImmuneByStac
 	if(obj->count >= obj->baseAmount)
 		return ESpellCastProblem::STACK_IMMUNE_TO_SPELL;
 
-	if(caster) //FIXME: Archangels can cast immune stack
+	//FIXME: Archangels can cast immune stack and this should be applied for them and not hero
+	if(caster) 
 	{
 		auto maxHealth = calculateHealedHP(caster, obj, nullptr);
 		if (maxHealth < obj->MaxHealth()) //must be able to rise at least one full creature