Replaced m.getDistance()

This commit is contained in:
bm01
2012-02-29 03:26:19 +01:00
parent a41fc22899
commit 093f368545
3 changed files with 14 additions and 8 deletions

View File

@ -274,7 +274,7 @@ public class Skills
player.sendMessage(ability.getAbilityOn());
for(Player y : player.getWorld().getPlayers())
{
if(y != player && m.getDistance(player.getLocation(), y.getLocation()) < 10)
if(y != player && m.isNear(player.getLocation(), y.getLocation(), 10))
y.sendMessage(ability.getAbilityPlayer(player));
}
PP.setSkillDATS(ability, System.currentTimeMillis()+(ticks*1000));