forked from mirror/openmw-tes3mp
[Client] Fix logic for setting applyProjectileEnchantment in attack sync
This commit is contained in:
parent
8012d0d7b7
commit
c9ad411dd3
1 changed files with 4 additions and 2 deletions
|
@ -320,10 +320,12 @@ namespace MWMechanics
|
||||||
localAttack->applyWeaponEnchantment = appliedEnchantment;
|
localAttack->applyWeaponEnchantment = appliedEnchantment;
|
||||||
|
|
||||||
if (weapon != projectile)
|
if (weapon != projectile)
|
||||||
|
{
|
||||||
appliedEnchantment = applyOnStrikeEnchantment(attacker, victim, projectile, hitPosition, true);
|
appliedEnchantment = applyOnStrikeEnchantment(attacker, victim, projectile, hitPosition, true);
|
||||||
|
|
||||||
if (localAttack)
|
if (localAttack)
|
||||||
localAttack->applyProjectileEnchantment = appliedEnchantment;
|
localAttack->applyProjectileEnchantment = appliedEnchantment;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
End of tes3mp change (minor)
|
End of tes3mp change (minor)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue