1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

Fixed DamageHealth and AbsorbHealth effects applying

This commit is contained in:
Andrei Kortunov 2017-07-31 23:05:19 +04:00
parent eac2e52841
commit b7cfb1aaf4

View file

@ -1131,6 +1131,9 @@ namespace MWMechanics
receivedMagicDamage = true;
adjustDynamicStat(creatureStats, effectKey.mId-ESM::MagicEffect::DamageHealth, -magnitude);
}
break;
case ESM::MagicEffect::DamageMagicka:
case ESM::MagicEffect::DamageFatigue:
if (!godmode)
@ -1147,6 +1150,9 @@ namespace MWMechanics
receivedMagicDamage = true;
adjustDynamicStat(creatureStats, effectKey.mId-ESM::MagicEffect::AbsorbHealth, -magnitude);
}
break;
case ESM::MagicEffect::AbsorbMagicka:
case ESM::MagicEffect::AbsorbFatigue:
if (!godmode)