修复虚拟牌判断
This commit is contained in:
parent
d3b732f0e4
commit
80395f2315
|
@ -131,8 +131,8 @@ export class Is extends Uninstantable {
|
||||||
* @param { Card | VCard } card
|
* @param { Card | VCard } card
|
||||||
*/
|
*/
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
static vituralCard(card) {
|
static virtualCard(card) {
|
||||||
return card.isCard || (!("cards" in card) || !Array.isArray(card.cards) || card.cards.length == 0);
|
return !card.isCard || (!("cards" in card) || !Array.isArray(card.cards) || card.cards.length === 0);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 是否是转化牌
|
* 是否是转化牌
|
||||||
|
@ -147,7 +147,9 @@ export class Is extends Uninstantable {
|
||||||
* @param { Card | VCard } card
|
* @param { Card | VCard } card
|
||||||
*/
|
*/
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
static ordinaryCard(card) { return card.isCard && ("cards" in card) && Array.isArray(card.cards) && card.cards.length == 1 }
|
static ordinaryCard(card) {
|
||||||
|
return card.isCard && ("cards" in card) && Array.isArray(card.cards) && card.cards.length === 1
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 押韵判断
|
* 押韵判断
|
||||||
* @param { string } str1
|
* @param { string } str1
|
||||||
|
|
Loading…
Reference in New Issue