Optimized Bloodbending a bit

If you were to bloodbend an entity initially close to you, the distance
between you and that entity while bloodbending would be the same. This
made throwing difficult as if you were to hit the entity (because it's
within arm range) the move wouldn't work. I set the distance value to 6,
so that when you Bloodbend an entity the distance between it and
yourself is always 6 unless you point at a wall or the floor.
This commit is contained in:
Brendan Wilson 2015-02-02 17:18:43 -05:00
parent 8ac15b4710
commit 046d1fd0f5

View file

@ -220,7 +220,7 @@ public class Bloodbending {
continue;
}
Location location = Methods.getTargetedLocation(player,
(int) targetentities.get(entity).distance(player.getLocation()));
6 /*(int) targetentities.get(entity).distance(player.getLocation())*/);
double distance = location.distance(newlocation);
double dx, dy, dz;
dx = location.getX() - newlocation.getX();