Skip to content

Commit

Permalink
ppq: fix bug where non-party leader can get stuck in an npc dialogue …
Browse files Browse the repository at this point in the history
…loop
  • Loading branch information
yuzumika committed Jan 4, 2024
1 parent f63f7e1 commit 7004de6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/npc/2094002.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7004de6

Please sign in to comment.