From 2a9e2a20a9974872a0a40618f813c98210030d77 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Sun, 8 Oct 2023 14:58:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=BC=E9=9F=B3=E5=BA=93bu?= =?UTF-8?q?g+markSkillCharacter=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 4 ++-- game/pinyinjs.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/game/game.js b/game/game.js index 46c4c6b1e..e8c11bdb3 100644 --- a/game/game.js +++ b/game/game.js @@ -25776,7 +25776,7 @@ } return this; }, - markSkillCharacter:function(id,target,name,content,broadcast){ + markSkillCharacter:function(id,target,name,content,nobroadcast){ if(typeof target=='object'){ target=target.name; } @@ -25813,7 +25813,7 @@ } } func(this,target,name,content,id); - if(!nobroadcast) game.broadcastAll(func,this,target,name,content,id); + if(!nobroadcast) game.broadcast(func,this,target,name,content,id); return this; }, markCharacter:function(name,info,learn,learn2){ diff --git a/game/pinyinjs.js b/game/pinyinjs.js index 6bb5c691f..9d7682f3c 100644 --- a/game/pinyinjs.js +++ b/game/pinyinjs.js @@ -41586,7 +41586,7 @@ var pinyin_dict_withtone = "yī,dīng zhēng,kǎo qiǎo yú,qī,shàng,xià,hǎn temp = ''; for (var j = 0; j < max && (i + j) < chinese.length; j++) { if (!dict.withtone[chinese[i]]) { - i+=(result[i].length-1); + i+=(result[m].length-1); break; } // 如果碰到非汉字直接停止本次查找 temp += chinese[i + j];