1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Quick fix for mantiss 0001875

* hardcoded permanent effect for animateDead
This commit is contained in:
AlexVinS
2015-04-11 15:01:55 +03:00
parent 69c58c6c25
commit 736cc14814

View File

@@ -563,7 +563,7 @@ void DefaultSpellMechanics::applyBattleEffects(const SpellCastEnvironment * env,
}
else
hi.healedHP = calculateHealedHP(parameters.caster, attackedCre, parameters.selectedStack); //Casted by hero
hi.lowLevelResurrection = parameters.spellLvl <= 1;
hi.lowLevelResurrection = (parameters.spellLvl <= 1) && (owner->id != SpellID::ANIMATE_DEAD);
shr.healedStacks.push_back(hi);
}
if(!shr.healedStacks.empty())