fix: autotool now finally chooses swords
This commit is contained in:
parent
ae65fb2593
commit
2c7dbb310a
1 changed files with 1 additions and 1 deletions
|
@ -31,6 +31,6 @@ public class Inventory implements ICommons {
|
||||||
.get(Attributes.ATTACK_SPEED);
|
.get(Attributes.ATTACK_SPEED);
|
||||||
if (speed_attrs.isEmpty()) return damage;
|
if (speed_attrs.isEmpty()) return damage;
|
||||||
double speed = Math.abs(speed_attrs.iterator().next().getAmount());
|
double speed = Math.abs(speed_attrs.iterator().next().getAmount());
|
||||||
return damage * speed;
|
return damage / (1. + speed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue