diff --git a/src/ts/process/lorebook.ts b/src/ts/process/lorebook.ts index 42252bc4..0f9946d5 100644 --- a/src/ts/process/lorebook.ts +++ b/src/ts/process/lorebook.ts @@ -364,6 +364,9 @@ export async function loadLoreBookV3Prompt(){ if(Number.isNaN(int)){ return false } + if(((char.firstMsgIndex ?? -1) + 1) !== int){ + activated = false + } } case 'position':{ if(["after_desc", "before_desc", "personality", "scenario"].includes(arg[0])){