giveUpCard返回实际删除卡牌的数量
This commit is contained in:
parent
eefd4efb05
commit
3df44fed20
2
src/global.d.ts
vendored
2
src/global.d.ts
vendored
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 补卡, 并广播消息
|
* 补卡, 并广播消息
|
||||||
|
@ -54,7 +54,7 @@ Object.defineProperties(Room.prototype, {
|
|||||||
cards: cardIds
|
cards: cardIds
|
||||||
};
|
};
|
||||||
this.bRemoveCard(msgData);
|
this.bRemoveCard(msgData);
|
||||||
return true;
|
return tmpCards.length;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user