Modifying how the Meridian Scepter picks a target, as the previous logic was a bit flawed.

This commit is contained in:
Ben 2016-04-10 15:27:20 +01:00
parent 9a2f4a8936
commit 0ac9747df1

View File

@ -151,7 +151,7 @@ public class MeridianScepter extends LegendaryItem
continue;
}
if (ClansManager.getInstance().getClan(shooter) == ClansManager.getInstance().getClan(closest))
if (ClansManager.getInstance().isInClan(shooter) && ClansManager.getInstance().getClan(shooter).isMember(closest))
{
continue;
}
@ -161,12 +161,17 @@ public class MeridianScepter extends LegendaryItem
continue;
}
if (closest.getGameMode().equals(GameMode.CREATIVE) || closest.getGameMode().equals(GameMode.SPECTATOR))
{
continue;
}
if (ClansManager.getInstance().getIncognitoManager().Get(closest).Status)
{
continue;
}
if (ClansManager.getInstance().getClan(shooter) != null && ClansManager.getInstance().getClan(shooter).isAlly(ClansManager.getInstance().getClan(closest)))
if (ClansManager.getInstance().isInClan(shooter) && ClansManager.getInstance().getClan(shooter).isAlly(ClansManager.getInstance().getClan(closest)))
{
continue;
}