forked from teamnwah/openmw-tes3coop
Fix hit chance calculation
This commit is contained in:
parent
6195062d72
commit
a569ae367e
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ namespace MWClass
|
|||
mageffects.get(MWMechanics::EffectKey(ESM::MagicEffect::Blind)).mMagnitude;
|
||||
hitchance -= othercls.getEvasion(victim);
|
||||
|
||||
if((::rand()/(RAND_MAX+1.0)) > hitchance)
|
||||
if((::rand()/(RAND_MAX+1.0)) > hitchance/100.0f)
|
||||
{
|
||||
// Missed
|
||||
MWBase::SoundManager *sndMgr = MWBase::Environment::get().getSoundManager();
|
||||
|
|
Loading…
Reference in a new issue