Fixed a bug with Oziach's dialogue

This commit is contained in:
Ceikry 2020-03-21 14:10:43 -05:00
parent 52ddebacea
commit 6f541049ae

View file

@ -44,6 +44,7 @@ public final class OziachDialogue extends DialoguePlugin {
public boolean open(Object... args) {
npc = (NPC) args[0];
quest = player.getQuestRepository().getQuest("Dragon Slayer");
player.debug("" + quest.getStage(player));
switch (quest.getStage(player)) {
case 100:
npc("Aye, 'tis a fair day, my mighty dragon-slaying friend.");
@ -94,6 +95,9 @@ public final class OziachDialogue extends DialoguePlugin {
case 20:
if (stage == -1) {
end();
} else {
end();
break;
}
break;
case 100: