Skip to content

Commit

Permalink
Don't stagger creatures in the middle of an attack (#8275)
Browse files Browse the repository at this point in the history
  • Loading branch information
Capostrophic committed Jan 4, 2025
1 parent 6ac0880 commit 9b09ce5
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 9b09ce5

Please sign in to comment.