mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +02:00
Comment out wrong code
This commit is contained in:
parent
f66c29ea3b
commit
a35b8a46d3
@ -530,12 +530,12 @@ ESpellCastProblem::ESpellCastProblem SpecialRisingSpellMechanics::isImmuneByStac
|
||||
return ESpellCastProblem::STACK_IMMUNE_TO_SPELL;
|
||||
|
||||
//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
|
||||
return ESpellCastProblem::STACK_IMMUNE_TO_SPELL;
|
||||
}
|
||||
// if(caster)
|
||||
// {
|
||||
// auto maxHealth = calculateHealedHP(caster, obj, nullptr);
|
||||
// if (maxHealth < obj->MaxHealth()) //must be able to rise at least one full creature
|
||||
// return ESpellCastProblem::STACK_IMMUNE_TO_SPELL;
|
||||
// }
|
||||
|
||||
return DefaultSpellMechanics::isImmuneByStack(caster,obj);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user