Critical strikes (fully charged bow) deals more damage from farther away than closer now

This commit is contained in:
Bernhard Bonigl committed 2015-01-18 23:05:59 +01:00
1 parent a1616dec8c
commit 119e888dc2
1 file changed
+1 -1
@@ -246,7 +246,7 @@ public abstract class ProjectileBase extends EntityArrow implements IEntityAddit
// calculate critical damaaage
if (this.getIsCritical())
damage += this.rand.nextFloat() * (damage / 2f + 2f);
damage += (this.rand.nextFloat()/4f + Math.min(0.75f, distance/25f)) * (damage / 2f + 2f);
// and now we come to the part where we actually deal the damage!
if(!dealDamage(damage, ammo, tags, movingobjectposition.entityHit))