Code improvements.
This commit is contained in:
@@ -71,12 +71,9 @@ final class Clan extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
if (LEADER_REQUIRED.containsKey(event))
|
||||
if (LEADER_REQUIRED.containsKey(event) && !player.isClanLeader())
|
||||
{
|
||||
if (!player.isClanLeader())
|
||||
{
|
||||
return LEADER_REQUIRED.get(event);
|
||||
}
|
||||
return LEADER_REQUIRED.get(event);
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
@@ -60,7 +60,7 @@ final class ProofOfCourage extends AbstractNpcAI
|
||||
{
|
||||
return npc.getId() + "-noclass.html";
|
||||
}
|
||||
else if (!CLASSLIST.get(npc.getId()).contains(talker.getClassId()))
|
||||
if (!CLASSLIST.get(npc.getId()).contains(talker.getClassId()))
|
||||
{
|
||||
return npc.getId() + "-no.html";
|
||||
}
|
||||
|
@@ -62,7 +62,7 @@ final class ProofOfJustice extends AbstractNpcAI
|
||||
{
|
||||
return npc.getId() + "-noclass.html";
|
||||
}
|
||||
else if (!CLASSLIST.get(npc.getId()).contains(talker.getClassId()))
|
||||
if (!CLASSLIST.get(npc.getId()).contains(talker.getClassId()))
|
||||
{
|
||||
return npc.getId() + "-no.html";
|
||||
}
|
||||
|
Reference in New Issue
Block a user