From 5346266e5ff674e0d5f480feb87bd4316f761977 Mon Sep 17 00:00:00 2001 From: Aria Date: Thu, 19 Sep 2019 18:59:29 +0200 Subject: [PATCH] Fixed damage calculation --- src/main/java/net/Indyuce/mmoitems/api/AttackResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmoitems/api/AttackResult.java b/src/main/java/net/Indyuce/mmoitems/api/AttackResult.java index 23865e01..8b82f5a2 100644 --- a/src/main/java/net/Indyuce/mmoitems/api/AttackResult.java +++ b/src/main/java/net/Indyuce/mmoitems/api/AttackResult.java @@ -83,7 +83,7 @@ public class AttackResult { } public void addRelativeDamage(double coef) { - multiplyDamage(Math.max(1, coef >= 1 ? coef : 1 + coef)); + multiplyDamage(1 + coef); } public AttackResult multiplyDamage(double coef) {