1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Merge branch 'soulful' into 'master'

Fix soul trapping for one shot kills

Closes #6337

See merge request OpenMW/openmw!1288
This commit is contained in:
psi29a 2021-10-12 07:59:44 +00:00
commit 6ec66edb7c

View File

@ -48,6 +48,8 @@ namespace MWMechanics
MWMechanics::CastSpell cast(attacker, victim, fromProjectile);
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);
return true;
}
}