Use has?get:key instead.

This commit is contained in:
Tipx-L 2023-09-04 22:23:48 -07:00
parent a3a9540950
commit 35f0cec459
1 changed files with 2 additions and 2 deletions

View File

@ -53195,8 +53195,8 @@
//Get the card name length
//获取此牌的字数
cardNameLength:card=>{
const name=get.translation(get.name(card));
return (lib.actualCardName.get(name)||name).length;
const actualCardName=lib.actualCardName,name=get.translation(get.name(card));
return (actualCardName.has(name)?actualCardName.get(name):name).length;
},
//Yingbian
//应变