Skip to content

Commit

Permalink
Critical strikes (fully charged bow) deals more damage from farther a…
Browse files Browse the repository at this point in the history
…way than closer now
  • Loading branch information
bonii-xx committed Jan 18, 2015
1 parent a1616de commit 119e888
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -246,7 +246,7 @@ public void onHitEntity(MovingObjectPosition movingobjectposition) {

// 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))
Expand Down

0 comments on commit 119e888

Please sign in to comment.