Fix kill NPC objectives, fixes #1883

This commit is contained in:
PikaMug 2022-02-18 04:06:26 -05:00
parent 4fb8e5e781
commit a81fdf2918

View File

@ -2557,7 +2557,7 @@ public class Quester implements IQuester {
final int index = getCurrentStage(quest).getCitizensToKill().indexOf(npc.getId()); final int index = getCurrentStage(quest).getCitizensToKill().indexOf(npc.getId());
final int npcsKilled = getQuestData(quest).citizensNumKilled.get(index); final int npcsKilled = getQuestData(quest).citizensNumKilled.get(index);
final int npcsToKill = getCurrentStage(quest).getMobNumToKill().get(index); final int npcsToKill = getCurrentStage(quest).getCitizenNumToKill().get(index);
final ObjectiveType type = ObjectiveType.KILL_NPC; final ObjectiveType type = ObjectiveType.KILL_NPC;
final QuesterPreUpdateObjectiveEvent preEvent = new QuesterPreUpdateObjectiveEvent(this, quest, final QuesterPreUpdateObjectiveEvent preEvent = new QuesterPreUpdateObjectiveEvent(this, quest,