1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 17:45:34 +00:00

Don't stagger creatures in the middle of an attack ()

This commit is contained in:
Alexei Kotov 2025-01-03 19:30:36 +03:00
parent 6ac0880cf3
commit 9b09ce53ef

View file

@ -403,6 +403,12 @@ namespace MWMechanics
resetCurrentIdleState();
}
if (!mPtr.getClass().isNpc() && mUpperBodyState > UpperBodyState::WeaponEquipped)
{
recovery = false;
stats.setHitRecovery(false);
}
if (mHitState != CharState_None)
{
if (!mAnimation->isPlaying(mCurrentHit))