Modifying how the Meridian Scepter picks a target, as the previous logic was a bit flawed.
This commit is contained in:
parent
9a2f4a8936
commit
0ac9747df1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user