Sharing with the dead is bad, they have nothing to gain.

This commit is contained in:
TfT_02
2013-04-01 00:22:18 +02:00
parent 4e9322485a
commit 4992c50098
2 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public final class PartyManager {
List<Player> nearMembers = new ArrayList<Player>();
if (party != null) {
for (Player member : party.getOnlineMembers()) {
if (!player.getName().equalsIgnoreCase(member.getName()) && Misc.isNear(player.getLocation(), member.getLocation(), range)) {
if (!player.getName().equalsIgnoreCase(member.getName()) && !member.isDead() && Misc.isNear(player.getLocation(), member.getLocation(), range)) {
nearMembers.add(member);
}
}