Knock out actors when fatigue base is 0 (Fixes #1847)

deque
scrawl 10 years ago
parent 44642ae21b
commit fc7ed05da8

@ -196,7 +196,8 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat
bool block = mPtr.getClass().getCreatureStats(mPtr).getBlock();
if(mHitState == CharState_None)
{
if (mPtr.getClass().getCreatureStats(mPtr).getFatigue().getCurrent() < 0)
if (mPtr.getClass().getCreatureStats(mPtr).getFatigue().getCurrent() < 0
|| mPtr.getClass().getCreatureStats(mPtr).getFatigue().getBase() == 0)
{
mHitState = CharState_KnockOut;
mCurrentHit = "knockout";

Loading…
Cancel
Save