mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 04:10:24 +00:00
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
This commit is contained in:
commit
787da4891c
1 changed files with 2 additions and 1 deletions
|
@ -49,6 +49,7 @@ namespace MWMechanics
|
||||||
cast.mHitPosition = hitPosition;
|
cast.mHitPosition = hitPosition;
|
||||||
cast.cast(object, false);
|
cast.cast(object, false);
|
||||||
// Apply magic effects directly instead of waiting a frame to allow soul trap to work on one-hit kills
|
// Apply magic effects directly instead of waiting a frame to allow soul trap to work on one-hit kills
|
||||||
|
if(victim.getClass().isActor())
|
||||||
MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(victim);
|
MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(victim);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue