1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fixed total spell immunity granted by 2212.

Improvements for Life Drain.
This commit is contained in:
DjWarmonger
2011-06-25 15:05:01 +00:00
parent 212bc13ad6
commit 9ca5d9048a
7 changed files with 16 additions and 8 deletions

View File

@ -545,7 +545,7 @@ void CGameHandler::prepareAttack(BattleAttack &bat, const CStack *att, const CSt
def->prepareAttacked(*bsa);
//life drain handling
if (att->hasBonusOfType(Bonus::LIFE_DRAIN))
if (att->hasBonusOfType(Bonus::LIFE_DRAIN) && def->isLiving())
{
StacksHealedOrResurrected shi;
shi.lifeDrain = (ui8)true;