mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-21 14:55:17 +01:00
Merge pull request #229 from Sedri05/master
Fixed deflection harming player with enderpearl
This commit is contained in:
commit
614ae61cac
@ -27,7 +27,9 @@ public class Deflection extends EcoEnchant {
|
||||
if (attacker.hasMetadata("cleaved") || attacker.hasMetadata("carved")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (attacker.equals(blocker)){
|
||||
return;
|
||||
}
|
||||
double perlevel = this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "percent-deflected-per-level");
|
||||
double damagePercent = (perlevel / 100) * level;
|
||||
double damage = event.getDamage() * damagePercent;
|
||||
|
Loading…
Reference in New Issue
Block a user