Use has?get:key instead.
This commit is contained in:
parent
a3a9540950
commit
35f0cec459
|
@ -53195,8 +53195,8 @@
|
||||||
//Get the card name length
|
//Get the card name length
|
||||||
//获取此牌的字数
|
//获取此牌的字数
|
||||||
cardNameLength:card=>{
|
cardNameLength:card=>{
|
||||||
const name=get.translation(get.name(card));
|
const actualCardName=lib.actualCardName,name=get.translation(get.name(card));
|
||||||
return (lib.actualCardName.get(name)||name).length;
|
return (actualCardName.has(name)?actualCardName.get(name):name).length;
|
||||||
},
|
},
|
||||||
//Yingbian
|
//Yingbian
|
||||||
//应变
|
//应变
|
||||||
|
|
Loading…
Reference in New Issue