Fixed Feather Talisman still giving damage effect if no damage was dealt

This commit is contained in:
Auxilor
2021-06-13 14:44:51 +01:00
parent b7f4c608a3
commit 895a308bf7

View File

@@ -20,6 +20,12 @@ public class FeatherTalisman extends Talisman {
return;
}
event.setDamage(event.getDamage() * this.getConfig().getDouble(Talismans.CONFIG_LOCATION + "multiplier"));
double damage = event.getDamage() * this.getConfig().getDouble(Talismans.CONFIG_LOCATION + "multiplier");
if (damage < 0.5) {
event.setCancelled(true);
return;
}
event.setDamage(damage);
}
}