diff --git a/apps/openmw/mwmechanics/spellcasting.cpp b/apps/openmw/mwmechanics/spellcasting.cpp index 1d1d8cf25f..489ab83ec1 100644 --- a/apps/openmw/mwmechanics/spellcasting.cpp +++ b/apps/openmw/mwmechanics/spellcasting.cpp @@ -613,13 +613,10 @@ namespace MWMechanics return true; } } - else if (target.getClass().isActor()) + else if (target.getClass().isActor() && effectId == ESM::MagicEffect::Dispel) { - if (effectId == ESM::MagicEffect::Dispel) - { - target.getClass().getCreatureStats(target).getActiveSpells().purgeAll(magnitude); - return true; - } + target.getClass().getCreatureStats(target).getActiveSpells().purgeAll(magnitude); + return true; } else if (target.getClass().isActor() && target == getPlayer()) {