mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Check if the target is an actor
This commit is contained in:
parent
ec6451e93a
commit
bba80b07a2
@ -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…
x
Reference in New Issue
Block a user