Fix attackStrength being unset for creatures with no weapons

c++11
scrawl 10 years ago
parent 5bc6513e2d
commit beb1086260

@ -991,6 +991,8 @@ bool CharacterController::updateCreatureState()
1, startKey, stopKey,
0.0f, 0);
mUpperBodyState = UpperCharState_StartToMinAttack;
stats.setAttackStrength(std::min(1.f, 0.1f + Misc::Rng::rollClosedProbability()));
}
}

Loading…
Cancel
Save