parent
6253512ca1
commit
78a9d501a8
|
@ -1736,7 +1736,7 @@ export class Get extends Uninstantable {
|
|||
* @returns {string}
|
||||
*/
|
||||
static suit(card, player) {
|
||||
if (!card) return;
|
||||
if (typeof card !== 'object') return;
|
||||
if (Array.isArray(card)) {
|
||||
if (card.length == 1) return get.suit(card[0], player);
|
||||
return 'none';
|
||||
|
@ -1761,7 +1761,7 @@ export class Get extends Uninstantable {
|
|||
* @returns {string}
|
||||
*/
|
||||
static color(card, player) {
|
||||
if (!card) return;
|
||||
if (typeof card !== 'object') return;
|
||||
if (Array.isArray(card)) {
|
||||
if (!card.length) return 'none';
|
||||
const cards = card.slice(), color = get.color(cards.shift(), player);
|
||||
|
@ -1790,7 +1790,7 @@ export class Get extends Uninstantable {
|
|||
* @returns {number}
|
||||
*/
|
||||
static number(card, player) {
|
||||
if (!card) return;
|
||||
if (typeof card !== 'object') return;
|
||||
//狗卡你是真敢出啊
|
||||
var number = null;
|
||||
if ('number' in card) {
|
||||
|
|
Loading…
Reference in New Issue