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:
parent
eac2e52841
commit
b7cfb1aaf4
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue