Fixed kill condition check for quest Facing Sadness (10812).

Contributed by angelus_ira.
This commit is contained in:
MobiusDevelopment
2020-07-09 03:50:58 +00:00
parent c9648c50ad
commit dc4a84c2c3
7 changed files with 42 additions and 26 deletions

View File

@@ -189,10 +189,13 @@ public class Q10812_FacingSadness extends Quest
public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE))
if ((qs != null) && qs.isCond(1) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE))
{
giveItems(player, PROOF_OF_DISPOSAL, CommonUtil.contains(MONSTERS_1, npc.getId()) ? 1 : 2);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
if (getQuestItemsCount(player, PROOF_OF_DISPOSAL) < 8000)
{
giveItems(player, PROOF_OF_DISPOSAL, CommonUtil.contains(MONSTERS_1, npc.getId()) ? 1 : 2);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
if (getQuestItemsCount(player, PROOF_OF_DISPOSAL) >= 8000)
{
qs.setCond(2, true);