From e28ed1b88239667d20a5b1c3d7a71db5ac417412 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 29 Aug 2024 19:38:06 -0500 Subject: [PATCH] fortitude handled after resists --- src/engine/objects/Resists.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Resists.java b/src/engine/objects/Resists.java index 2084b2c2..897b7fbf 100644 --- a/src/engine/objects/Resists.java +++ b/src/engine/objects/Resists.java @@ -454,7 +454,7 @@ public class Resists { */ public float getResistedDamage(AbstractCharacter source, AbstractCharacter target, DamageType type, float damage, int trains) { //handle fortitudes - damage = handleFortitude(target, type, damage); + //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); @@ -477,6 +477,7 @@ public class Resists { } target.cancelOnTakeDamage(type, (damageAfterResists)); } + damageAfterResists = handleFortitude(target, type, damageAfterResists); return damageAfterResists; }