AP applies only to mele damage

This commit is contained in:
2025-01-26 17:39:06 -06:00
parent 9278954f2f
commit b156da7ded
+3 -1
View File
@@ -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