Member range check for Lindvior and Kelbim.

Contributed by Sero.
This commit is contained in:
MobiusDevelopment
2020-11-09 23:13:27 +00:00
parent f6848f43de
commit 25ff1c296e
17 changed files with 175 additions and 64 deletions

View File

@@ -78,6 +78,13 @@ public class KatoSicanus extends AbstractNpcAI
final boolean isInCC = party.isInCommandChannel();
final List<PlayerInstance> members = (isInCC) ? party.getCommandChannel().getMembers() : party.getMembers();
final boolean isPartyLeader = (isInCC) ? party.getCommandChannel().isLeader(player) : party.isLeader(player);
for (PlayerInstance member : members)
{
if (!member.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE))
{
return "33881-4.html";
}
}
if (!isPartyLeader)
{
return "33881-3.html";