|
|
|
@ -1064,18 +1064,22 @@ namespace MWMechanics
|
|
|
|
|
adjustDynamicStat(creatureStats, effectKey.mId-ESM::MagicEffect::RestoreHealth, magnitude);
|
|
|
|
|
break;
|
|
|
|
|
case ESM::MagicEffect::DamageHealth:
|
|
|
|
|
receivedMagicDamage = true;
|
|
|
|
|
adjustDynamicStat(creatureStats, effectKey.mId-ESM::MagicEffect::DamageHealth, -magnitude);
|
|
|
|
|
break;
|
|
|
|
|
case ESM::MagicEffect::DamageMagicka:
|
|
|
|
|
case ESM::MagicEffect::DamageFatigue:
|
|
|
|
|
receivedMagicDamage = true;
|
|
|
|
|
adjustDynamicStat(creatureStats, effectKey.mId-ESM::MagicEffect::DamageHealth, -magnitude);
|
|
|
|
|
break;
|
|
|
|
|
case ESM::MagicEffect::AbsorbHealth:
|
|
|
|
|
case ESM::MagicEffect::AbsorbMagicka:
|
|
|
|
|
case ESM::MagicEffect::AbsorbFatigue:
|
|
|
|
|
if (magnitude > 0.f)
|
|
|
|
|
receivedMagicDamage = true;
|
|
|
|
|
adjustDynamicStat(creatureStats, effectKey.mId-ESM::MagicEffect::AbsorbHealth, -magnitude);
|
|
|
|
|
break;
|
|
|
|
|
case ESM::MagicEffect::AbsorbMagicka:
|
|
|
|
|
case ESM::MagicEffect::AbsorbFatigue:
|
|
|
|
|
adjustDynamicStat(creatureStats, effectKey.mId-ESM::MagicEffect::AbsorbHealth, -magnitude);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ESM::MagicEffect::DisintegrateArmor:
|
|
|
|
|
{
|
|
|
|
|