From d21b24666aecb6ac8449d400d5ab45f9d84604b1 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Tue, 10 Sep 2024 20:02:26 +0200 Subject: [PATCH] fix neutral avatar again --- public/scripts/slash-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 0eda2cb4e..f7a99729a 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -3131,7 +3131,7 @@ export async function sendMessageAs(args, text) { let force_avatar, original_avatar; const chatCharacter = this_chid !== null ? characters[this_chid] : null; - const isNeutralCharacter = !chatCharacter && name2 === neutralCharacterName; + const isNeutralCharacter = !chatCharacter && name2 === neutralCharacterName && name === neutralCharacterName; if (chatCharacter === character || isNeutralCharacter) { // If the targeted character is the currently selected one in a solo chat, we don't need to force any avatars