mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 15:41:32 +00:00
Merge branch 'cheaterrats' into 'master'
Don't stagger creatures in the middle of an attack (#8275) Closes #8275 See merge request OpenMW/openmw!4499
This commit is contained in:
commit
9f90349a09
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue