forked from mirror/openmw-tes3mp
Fix attackStrength being unset for creatures with no weapons
This commit is contained in:
parent
5bc6513e2d
commit
beb1086260
1 changed files with 2 additions and 0 deletions
|
@ -991,6 +991,8 @@ bool CharacterController::updateCreatureState()
|
||||||
1, startKey, stopKey,
|
1, startKey, stopKey,
|
||||||
0.0f, 0);
|
0.0f, 0);
|
||||||
mUpperBodyState = UpperCharState_StartToMinAttack;
|
mUpperBodyState = UpperCharState_StartToMinAttack;
|
||||||
|
|
||||||
|
stats.setAttackStrength(std::min(1.f, 0.1f + Misc::Rng::rollClosedProbability()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue