修正单人的抽卡消息没有source的bug

This commit is contained in:
zhl 2020-12-08 20:17:38 +08:00
parent 0c896a0810
commit 08ec7a7799

View File

@ -65,7 +65,8 @@ Object.defineProperties(Room.prototype, {
let client = this.getClient(dstplayer); let client = this.getClient(dstplayer);
let sData = { let sData = {
player: dstplayer, player: dstplayer,
cards: cards cards: cards,
source: source
}; };
this.sDrawCard(client, sData); this.sDrawCard(client, sData);
let cardIds = cards.map(card => card.id); let cardIds = cards.map(card => card.id);