mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-07 00:58:39 +02:00
fix comments
This commit is contained in:
@ -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
|
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;
|
return base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -529,7 +529,8 @@ ESpellCastProblem::ESpellCastProblem SpecialRisingSpellMechanics::isImmuneByStac
|
|||||||
if(obj->count >= obj->baseAmount)
|
if(obj->count >= obj->baseAmount)
|
||||||
return ESpellCastProblem::STACK_IMMUNE_TO_SPELL;
|
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);
|
auto maxHealth = calculateHealedHP(caster, obj, nullptr);
|
||||||
if (maxHealth < obj->MaxHealth()) //must be able to rise at least one full creature
|
if (maxHealth < obj->MaxHealth()) //must be able to rise at least one full creature
|
||||||
|
Reference in New Issue
Block a user