From 4abcb0d7b960c79e5990e5893654512a22f9f20e Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Wed, 8 Sep 2021 19:25:22 +0200 Subject: [PATCH] Remove applied magnitude instead of min magnitude --- apps/openmw/mwmechanics/spelleffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/spelleffects.cpp b/apps/openmw/mwmechanics/spelleffects.cpp index 96416f00c0..24816b9ed1 100644 --- a/apps/openmw/mwmechanics/spelleffects.cpp +++ b/apps/openmw/mwmechanics/spelleffects.cpp @@ -1029,7 +1029,7 @@ void onMagicEffectRemoved(const MWWorld::Ptr& target, ActiveSpells::ActiveSpellP auto& magnitudes = target.getClass().getCreatureStats(target).getMagicEffects(); const auto* magicEffect = world->getStore().get().find(effect.mEffectId); 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); auto anim = world->getAnimation(target); if(anim)