Refactoring

This commit is contained in:
GJ 2012-07-03 08:36:21 -04:00
parent 946b5bb006
commit 9f1b77a007

View File

@ -161,9 +161,9 @@ public class Skills {
PP.setAbilityInformed(ability, false); PP.setAbilityInformed(ability, false);
player.sendMessage(ability.getAbilityOff()); player.sendMessage(ability.getAbilityOff());
for (Player y : player.getWorld().getPlayers()) { for (Player nearbyPlayer : player.getWorld().getPlayers()) {
if (y != player && Misc.isNear(player.getLocation(), y.getLocation(), MAX_DISTANCE_AWAY)) { if (nearbyPlayer != player && Misc.isNear(player.getLocation(), nearbyPlayer.getLocation(), MAX_DISTANCE_AWAY)) {
y.sendMessage(ability.getAbilityPlayerOff(player)); nearbyPlayer.sendMessage(ability.getAbilityPlayerOff(player));
} }
} }
} }