File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
docs/source/reference/modding Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1256,11 +1256,14 @@ namespace MWMechanics
12561256 if (mAttackStrength == -1 .f )
12571257 mAttackStrength = std::min (1 .f , 0 .1f + Misc::Rng::rollClosedProbability (prng));
12581258 ESM::WeaponType::Class weapclass = getWeaponType (mWeaponType )->mWeaponClass ;
1259- if (weapclass != ESM::WeaponType::Ranged && weapclass != ESM::WeaponType::Thrown )
1259+ if (weapclass != ESM::WeaponType::Ranged)
12601260 {
1261- mAttackSuccess = mPtr .getClass ().evaluateHit (mPtr , mAttackVictim , mAttackHitPos );
1262- if (!mAttackSuccess )
1263- mAttackStrength = 0 .f ;
1261+ if (weapclass != ESM::WeaponType::Thrown)
1262+ {
1263+ mAttackSuccess = mPtr .getClass ().evaluateHit (mPtr , mAttackVictim , mAttackHitPos );
1264+ if (!mAttackSuccess )
1265+ mAttackStrength = 0 .f ;
1266+ }
12641267 playSwishSound ();
12651268 }
12661269
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ Combat
161161 * - ``miss ``
162162 - An attack misses
163163 * - ``weapon swish ``
164- - Melee weapon attack. The sound is modulated based on attack strength.
164+ - Melee or thrown weapon attack. The sound is modulated based on attack strength.
165165
166166
167167UI
You can’t perform that action at this time.
0 commit comments