mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-13 16:18:52 +00:00
Fix hit chance calculation
This commit is contained in:
parent
6195062d72
commit
a569ae367e
@ -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…
x
Reference in New Issue
Block a user