AP applies only to mele damage
This commit is contained in:
1 parent
9278954f2f
commit
b156da7ded
1 file changed
+3
-1
@@ -457,7 +457,9 @@ public class Resists {
|
|||||||
//damage = handleFortitude(target, type, damage);
|
//damage = handleFortitude(target, type, damage);
|
||||||
//calculate armor piercing
|
//calculate armor piercing
|
||||||
float ap = source.getBonuses().getFloatPercentAll(ModType.ArmorPiercing, SourceType.None);
|
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
|
//check to see if any damage absorbers should cancel
|
||||||
if (target != null) {
|
if (target != null) {
|
||||||
//debug damage shields if any found
|
//debug damage shields if any found
|
||||||
|
|||||||
Reference in new issue
Block a user