1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-20 19:39:41 +00:00

Fix erroneous assumption that ranged weaponry has speed

Restrict speed mult to melee weaponry
This commit is contained in:
Capostrophic 2018-09-01 12:07:26 +03:00 committed by Capostrophic
parent ceb6121b33
commit d758b573e2

View file

@ -121,7 +121,7 @@ namespace MWMechanics
rating *= getHitChance(actor, enemy, value) / 100.f;
if (weapon->mData.mType <= ESM::Weapon::MarksmanThrown)
if (weapon->mData.mType < ESM::Weapon::MarksmanBow)
rating *= weapon->mData.mSpeed;
return rating * rangedMult;