Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -265,13 +265,10 @@ public final class Q00625_TheFinestIngredientsPart2 extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(killer, 1, 2, npc);
if ((qs != null) && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && Util.checkIfInRange(1500, npc, killer, true) && (npc.getSummoner() == killer))
{
if (npc.getSummoner() == killer)
{
qs.setCond(3, true);
giveItems(qs.getPlayer(), SPECIAL_YETI_MEAT);
}
qs.setCond(3, true);
giveItems(qs.getPlayer(), SPECIAL_YETI_MEAT);
}
return super.onKill(npc, killer, isSummon);
}