fix: Fixes Feint so it properly reduces damage (#1657)
This commit is contained in:
parent
49118556d3
commit
0ffea2e912
3 changed files with 78 additions and 58 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue