From a0e482c536d2c154dc83a381ef70c0f50e004dd4 Mon Sep 17 00:00:00 2001 From: Mute Date: Sat, 9 Jul 2022 02:33:08 +0000 Subject: [PATCH] Update 'mbchc-local.user.js' --- mbchc-local.user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mbchc-local.user.js b/mbchc-local.user.js index beb79ca..8d39804 100644 --- a/mbchc-local.user.js +++ b/mbchc-local.user.js @@ -230,7 +230,8 @@ var bcModSdk=function(){"use strict";const o="1.0.2";function e(o){alert("Mod ER return(window.ChatRoomCharacter[pos]) }, rel2char: function(target) { - let me = this.ensure("can't find my position", () => window.ChatRoomCharacter.findIndex(char => char.IsPlayer())) + let me = this.ensure("can't find my position", () => window.ChatRoomCharacter.findIndex(char => char.IsPlayer()) + 1) + me = me - 1 let index = null if (target.match(this.RE_ALL_LEFT)) index = me - target.length if (target.match(this.RE_ALL_RIGHT)) index = me + target.length