Merge pull request #213 from yuzumika/ppq-npc-fix #patch

Fix bug in PPQ where non-party leader can get stuck in an NPC dialogue loop
This commit is contained in:
Ponk
2024-02-04 12:09:33 +01:00
committed by GitHub

View File

@@ -23,7 +23,12 @@ function action(mode, type, selection) {
}
if (!cm.isEventLeader()) {
cm.sendYesNo("I wish for your leader to talk to me. Alternatively, you may be wanting to quit. Are you going to abandon this campaign?");
// Player chose "No" or "End Chat"
if (mode <= 0) {
cm.dispose();
} else {
cm.sendYesNo("I wish for your leader to talk to me. Alternatively, you may be wanting to quit. Are you going to abandon this campaign?");
}
} else {
var eim = cm.getEventInstance();
if (eim == null) {