giveUpCard返回实际删除卡牌的数量

This commit is contained in:
zhl 2021-01-04 13:35:03 +08:00
parent eefd4efb05
commit 3df44fed20
2 changed files with 2 additions and 2 deletions

2
src/global.d.ts vendored
View File

@ -187,7 +187,7 @@ declare module "colyseus" {
* @param dstplayer * @param dstplayer
* @param count * @param count
*/ */
giveUpCard(dstplayer: string, count: number): boolean; giveUpCard(dstplayer: string, count: number): number;
/** /**
* , 广 * , 广

View File

@ -54,7 +54,7 @@ Object.defineProperties(Room.prototype, {
cards: cardIds cards: cardIds
}; };
this.bRemoveCard(msgData); this.bRemoveCard(msgData);
return true; return tmpCards.length;
} }
}, },
/** /**