Merge branch 'actor_souls_only' into 'master'

Check if the target is an actor before updating magic effects

Closes #6339

See merge request OpenMW/openmw!1294
pull/3178/head
psi29a 3 years ago
commit 787da4891c

@ -49,7 +49,8 @@ namespace MWMechanics
cast.mHitPosition = hitPosition;
cast.cast(object, false);
// Apply magic effects directly instead of waiting a frame to allow soul trap to work on one-hit kills
MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(victim);
if(victim.getClass().isActor())
MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(victim);
return true;
}
}

Loading…
Cancel
Save