Skip to content

Commit

Permalink
Merge branch 'cheaterrats' into 'master'
Browse files Browse the repository at this point in the history
Don't stagger creatures in the middle of an attack (#8275)

Closes #8275

See merge request OpenMW/openmw!4499
  • Loading branch information
psi29a committed Jan 4, 2025
2 parents f6efb28 + 9b09ce5 commit 9f90349
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/openmw/mwmechanics/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9f90349

Please sign in to comment.