Skip to content

Commit

Permalink
fix bug where assistant never speaks to you again
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost committed Oct 9, 2023
1 parent 7135fc9 commit 3a72737
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions core/s-cript.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class ScriptGod {

// clear each herald's active keys
for (const herald of Object.values(m.heralds)) {
herald.clearActiveKeys()
herald.OnBeforeVisit()
}
}
}
Expand Down Expand Up @@ -311,7 +311,8 @@ class ScriptHerald {
return
}

// don't show dialog if the item is marked continue
// don't show dialog if the item is marked continue because cont will move
// automatically to next on close
if(isClick && m.currentItem != null && m.currentItem.operations.cont) {
m.closeOpenDialog()
return
Expand Down Expand Up @@ -676,6 +677,12 @@ class ScriptHerald {
}

// -- events --
OnBeforeVisit = () => {
const m = this
m.currentItem = null
m.clearActiveKeys()
}

// when the target is clicked
onTargetClick = () => {
this.showNextDialog(true)
Expand Down

0 comments on commit 3a72737

Please sign in to comment.