Iron men can no longer participate in lootshare

This commit is contained in:
GregF 2025-02-01 13:25:23 +00:00 committed by Ryan
parent edc6f9cf07
commit f37b30749e
2 changed files with 14 additions and 10 deletions

View file

@ -44,9 +44,13 @@ public final class ClanInterfacePlugin extends ComponentPlugin {
ClanRepository.openSettings(player);
return true;
case 14:
if (player.getIronmanManager().checkRestriction()) {
return false;
}
player.getDetails().getCommunication().toggleLootshare(player);
return true;
}
break;
case 590:
final ClanRepository clan = ClanRepository.get(player.getName(), true);

View file

@ -147,7 +147,7 @@ public final class NPCDropTables {
List<Player> players = RegionManager.getLocalPlayers(npc, 16);
List<Player> looters = new ArrayList<>(20);
for (Player p : players) {
if (p != null && p.getCommunication().getClan() != null && p.getCommunication().getClan() == player.getCommunication().getClan() && p.getCommunication().isLootShare() && p.getCommunication().getLootRequirement().ordinal() >= p.getCommunication().getClan().getLootRequirement().ordinal() && !p.getIronmanManager().isIronman()) {
if (p != null && p.getCommunication().getClan() != null && p.getCommunication().getClan() == player.getCommunication().getClan() && p.getCommunication().isLootShare() && p.getCommunication().getLootRequirement().ordinal() >= p.getCommunication().getClan().getLootRequirement().ordinal()) {
looters.add(p);
}
}