Code style changes.

This commit is contained in:
MobiusDev
2016-04-26 19:21:19 +00:00
parent 6a13705766
commit fc070c9238
768 changed files with 3338 additions and 4252 deletions

View File

@@ -72,7 +72,7 @@ public class PartyClan implements ITargetTypeHandler
});
// if player in clan and not in party
if (!(hasClan || hasParty))
if (!hasClan && !hasParty)
{
return targetList.toArray(new L2Character[targetList.size()]);
}
@@ -117,7 +117,7 @@ public class PartyClan implements ITargetTypeHandler
}
}
if (!((hasClan && (obj.getClanId() == player.getClanId())) || (hasParty && obj.isInParty() && (player.getParty().getLeaderObjectId() == obj.getParty().getLeaderObjectId()))))
if ((!hasClan || (obj.getClanId() != player.getClanId())) && (!hasParty || !obj.isInParty() || (player.getParty().getLeaderObjectId() != obj.getParty().getLeaderObjectId())))
{
continue;
}