From b156da7dedfca91fdc01b42e05aa46ff49eb56d1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 26 Jan 2025 17:39:06 -0600 Subject: [PATCH] AP applies only to mele damage --- src/engine/objects/Resists.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Resists.java b/src/engine/objects/Resists.java index a230ef5c..ad7450e1 100644 --- a/src/engine/objects/Resists.java +++ b/src/engine/objects/Resists.java @@ -457,7 +457,9 @@ public class Resists { //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); + float damageAfterResists = damage; + if(type.equals(DamageType.Pierce) || type.equals(DamageType.Crush) || type.equals(DamageType.Slash)) + damageAfterResists = damage * (1 - (this.getResist(type, trains) * 0.01f) + ap); //check to see if any damage absorbers should cancel if (target != null) { //debug damage shields if any found