Code improvements.
This commit is contained in:
@@ -205,12 +205,9 @@ public final class Q00603_DaimonTheWhiteEyedPart1 extends Quest
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getRandomPartyMemberState(killer, 7, 3, npc);
|
||||
if (qs != null)
|
||||
if ((qs != null) && giveItemRandomly(qs.getPlayer(), npc, SPIRIT_OF_DARKNESS, 1, 200, MONSTER_CHANCES.get(npc.getId()), true))
|
||||
{
|
||||
if (giveItemRandomly(qs.getPlayer(), npc, SPIRIT_OF_DARKNESS, 1, 200, MONSTER_CHANCES.get(npc.getId()), true))
|
||||
{
|
||||
qs.setCond(8, true);
|
||||
}
|
||||
qs.setCond(8, true);
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user