修复拼音库bug+markSkillCharacter bug

This commit is contained in:
Spmario233 2023-10-08 14:58:15 +08:00
parent 808f0ee48b
commit 2a9e2a20a9
2 changed files with 3 additions and 3 deletions

View File

@ -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){

View File

@ -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];