Merge pull request #486 from BauxiteAl/PR-Branch
让`cardNameLength`可输入字符串牌名直接输出牌名字数
This commit is contained in:
commit
381211290b
|
@ -56037,7 +56037,7 @@
|
|||
//Get the card name length
|
||||
//获取此牌的字数
|
||||
cardNameLength:(card,player)=>{
|
||||
const actualCardName=lib.actualCardName,name=get.translation(get.name(card,player));
|
||||
const actualCardName=lib.actualCardName,name=get.translation(typeof card=='string'?card:get.name(card,player));
|
||||
return (actualCardName.has(name)?actualCardName.get(name):name).length;
|
||||
},
|
||||
//Yingbian
|
||||
|
|
Loading…
Reference in New Issue