Ninja Dash damage radius fix

This commit is contained in:
Sam 2016-08-01 17:18:01 +01:00
parent 84a4aa5157
commit 8f96b15454

View File

@ -27,6 +27,8 @@ import nautilus.game.arcade.kit.Perk;
public class PerkDash extends Perk
{
private static final double DAMAGE_RADIUS = 2;
private long _cooldown;
private double _damage;
private double _distance;
@ -98,7 +100,7 @@ public class PerkDash extends Perk
}
//Damage Players
for (Player other : UtilPlayer.getNearby(newTarget, _distance))
for (Player other : UtilPlayer.getNearby(newTarget, DAMAGE_RADIUS))
{
Manager.GetDamage().NewDamageEvent(other, player, null, DamageCause.CUSTOM, _damage, true, false, false, player.getName(), GetName());
}