Make damageReduction reduce damage.

Swap the addition for subtraction, so more invigoration points will multiply the damage by a lower percentage.
This commit is contained in:
cfcradle 2022-01-09 23:25:15 -05:00 committed by GitHub
parent 404605cb1b
commit 601934fa88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ public class Invigoration extends EcoEnchant {
}
double damageReduction = totalInvigorationPoints * this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "reduction-multiplier") * 0.01;
damageReduction += 1;
damageReduction -= 1;
event.setDamage(event.getDamage() * damageReduction);
}