fix: Fixes Feint so it properly reduces damage (#1657)

This commit is contained in:
Kamron Batman 2024-01-11 00:01:52 -08:00 committed by GitHub
parent 49118556d3
commit 0ffea2e912
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 78 additions and 58 deletions

View file

@ -1013,6 +1013,12 @@ namespace Server.Spells
bcTarget?.AlterSpellDamageFrom(from, ref dmg);
if (Feint.GetDamageReduction(from, target, out int feintReduction))
{
// example: 35 damage * 50 / 100 = 17 damage
dmg -= dmg * feintReduction / 100;
}
StaminaSystem.DFA = dfa;
var damageGiven = AOS.Damage(target, from, dmg, phys, fire, cold, pois, nrgy, chaos);