|
|
@ -634,6 +634,7 @@ namespace MWClass
|
|
|
|
if (localAttack)
|
|
|
|
if (localAttack)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
localAttack->success = true;
|
|
|
|
localAttack->success = true;
|
|
|
|
|
|
|
|
localAttack->usesStrikeEnchantment = false;
|
|
|
|
MechanicsHelper::assignAttackTarget(localAttack, victim);
|
|
|
|
MechanicsHelper::assignAttackTarget(localAttack, victim);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -706,7 +707,20 @@ namespace MWClass
|
|
|
|
damage *= store.find("fCombatKODamageMult")->getFloat();
|
|
|
|
damage *= store.find("fCombatKODamageMult")->getFloat();
|
|
|
|
|
|
|
|
|
|
|
|
// Apply "On hit" enchanted weapons
|
|
|
|
// Apply "On hit" enchanted weapons
|
|
|
|
MWMechanics::applyOnStrikeEnchantment(ptr, victim, weapon, hitPosition);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Start of tes3mp change (minor)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Track whether the strike enchantment is successful for attacks by the
|
|
|
|
|
|
|
|
LocalPlayer or LocalActors
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
bool appliedEnchantment = MWMechanics::applyOnStrikeEnchantment(ptr, victim, weapon, hitPosition);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (localAttack)
|
|
|
|
|
|
|
|
localAttack->usesStrikeEnchantment = appliedEnchantment;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
End of tes3mp change (minor)
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
MWMechanics::applyElementalShields(ptr, victim);
|
|
|
|
MWMechanics::applyElementalShields(ptr, victim);
|
|
|
|
|
|
|
|
|
|
|
|