skyrim-multiplayer / skymp

Multiplayer Mod & TypeScript SDK for Skyrim Special Edition
Other
221 stars 75 forks source link

Bash attack fix #2189

Closed BartPortugalec closed 1 month ago

BartPortugalec commented 1 month ago

[!IMPORTANT] Add handling for bash attacks in TES5DamageFormulaImpl by introducing isBashAttack parameter and updating damage calculation logic.

  • Behavior:
    • Modify DetermineDamageFromSource in TES5DamageFormulaImpl to accept isBashAttack parameter.
    • Update CalculateDamage in TES5DamageFormulaImpl to apply a 0.3x multiplier for bash attacks.
  • Functions:
    • Change IsUnarmedAttack to consider isBashAttack and return false if true.
  • Misc:
    • Remove unused IsUnarmedAttack function definition.

This description was created by Ellipsis for 093e22729ce612d58ca5ae758ce78b713cba0630. It will automatically update as commits are pushed.