mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-21 13:11:33 +00:00
Remove applied magnitude instead of min magnitude
This commit is contained in:
parent
46ce2ff10c
commit
4abcb0d7b9
1 changed files with 1 additions and 1 deletions
|
@ -1029,7 +1029,7 @@ void onMagicEffectRemoved(const MWWorld::Ptr& target, ActiveSpells::ActiveSpellP
|
||||||
auto& magnitudes = target.getClass().getCreatureStats(target).getMagicEffects();
|
auto& magnitudes = target.getClass().getCreatureStats(target).getMagicEffects();
|
||||||
const auto* magicEffect = world->getStore().get<ESM::MagicEffect>().find(effect.mEffectId);
|
const auto* magicEffect = world->getStore().get<ESM::MagicEffect>().find(effect.mEffectId);
|
||||||
if(magicEffect->mData.mFlags & ESM::MagicEffect::Flags::AppliedOnce)
|
if(magicEffect->mData.mFlags & ESM::MagicEffect::Flags::AppliedOnce)
|
||||||
magnitudes.add(EffectKey(effect.mEffectId, effect.mArg), EffectParam(-effect.mMinMagnitude));
|
magnitudes.add(EffectKey(effect.mEffectId, effect.mArg), EffectParam(-effect.mMagnitude));
|
||||||
removeMagicEffect(target, spellParams, effect);
|
removeMagicEffect(target, spellParams, effect);
|
||||||
auto anim = world->getAnimation(target);
|
auto anim = world->getAnimation(target);
|
||||||
if(anim)
|
if(anim)
|
||||||
|
|
Loading…
Reference in a new issue