From c9ad411dd352465a4aea960af79818042a666161 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sun, 9 Sep 2018 22:33:48 +0300 Subject: [PATCH] [Client] Fix logic for setting applyProjectileEnchantment in attack sync --- apps/openmw/mwmechanics/combat.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmechanics/combat.cpp b/apps/openmw/mwmechanics/combat.cpp index 2256808b3..d6516dea9 100644 --- a/apps/openmw/mwmechanics/combat.cpp +++ b/apps/openmw/mwmechanics/combat.cpp @@ -320,10 +320,12 @@ namespace MWMechanics localAttack->applyWeaponEnchantment = appliedEnchantment; if (weapon != projectile) + { appliedEnchantment = applyOnStrikeEnchantment(attacker, victim, projectile, hitPosition, true); - if (localAttack) - localAttack->applyProjectileEnchantment = appliedEnchantment; + if (localAttack) + localAttack->applyProjectileEnchantment = appliedEnchantment; + } /* End of tes3mp change (minor) */