From 7dfc1dea0f0a2de610e382804c23de55e0845210 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 17 Mar 2024 16:07:15 -0500 Subject: [PATCH] fortitudes handled after resist calculations --- src/engine/objects/Resists.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Resists.java b/src/engine/objects/Resists.java index e72b1827..46ed5cf0 100644 --- a/src/engine/objects/Resists.java +++ b/src/engine/objects/Resists.java @@ -393,8 +393,6 @@ public class Resists { * Expects heals as negative damage and damage as positive damage for fortitudes. */ public float getResistedDamage(AbstractCharacter source, AbstractCharacter target, DamageType type, float damage, int trains) { - //handle fortitudes - damage = handleFortitude(target, type, damage); //calculate armor piercing float ap = source.getBonuses().getFloatPercentAll(ModType.ArmorPiercing, SourceType.None); float damageAfterResists = damage * (1 - (this.getResist(type, trains) * 0.01f) + ap); @@ -417,6 +415,8 @@ public class Resists { } target.cancelOnTakeDamage(type, (damageAfterResists)); } + //handle fortitudes last + damageAfterResists = handleFortitude(target, type, damageAfterResists); return damageAfterResists; }