From 636299c4df9b71429586838fb4f2ab7f6d473db5 Mon Sep 17 00:00:00 2001 From: Nathan Braun Date: Fri, 2 Jan 2015 20:27:12 -0800 Subject: [PATCH] EarthSmash now obeys its shootRange get/set --- .../projectkorra/ProjectKorra/earthbending/EarthSmash.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/projectkorra/ProjectKorra/earthbending/EarthSmash.java b/src/com/projectkorra/ProjectKorra/earthbending/EarthSmash.java index 6f5d2420..b6123a70 100644 --- a/src/com/projectkorra/ProjectKorra/earthbending/EarthSmash.java +++ b/src/com/projectkorra/ProjectKorra/earthbending/EarthSmash.java @@ -118,7 +118,7 @@ public class EarthSmash { if(smash.state == State.GRABBED && smash.player == player) { smash.state = State.SHOT; smash.destination = player.getEyeLocation().clone().add - (player.getEyeLocation().getDirection().normalize().multiply(TRAVEL_RANGE)); + (player.getEyeLocation().getDirection().normalize().multiply(smash.shootRange)); smash.loc.getWorld().playEffect(smash.loc, Effect.GHAST_SHOOT, 0, 10); } } @@ -263,7 +263,7 @@ public class EarthSmash { } revert(); destination = player.getEyeLocation().clone().add - (player.getEyeLocation().getDirection().normalize().multiply(TRAVEL_RANGE)); + (player.getEyeLocation().getDirection().normalize().multiply(shootRange)); Vector direction = Methods.getDirection(loc, destination).normalize(); List entities = Methods.getEntitiesAroundPoint(loc.clone().add(0,2,0), FLIGHT_DETECTION_RADIUS);