fix blast reduction calculation in crystalaura

This commit is contained in:
Bella 2020-04-17 17:03:07 -04:00
parent 11fceec376
commit b8b4b12c4f
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 2 additions and 2 deletions

View File

@ -456,10 +456,10 @@ public class CrystalAura extends Module {
damage = damage * (1.0F - f / 25.0F);
if (entity.isPotionActive(Objects.requireNonNull(Potion.getPotionById(11)))) {
damage = damage - (damage / 4);
damage = damage - (damage / 5);
}
damage = Math.max(damage - ep.getAbsorptionAmount(), 0.0F);
damage = Math.max(damage, 0.0F);
return damage;
}
damage = CombatRules.getDamageAfterAbsorb(damage, (float) entity.getTotalArmorValue(), (float) entity.getEntityAttribute(SharedMonsterAttributes.ARMOR_TOUGHNESS).getAttributeValue());