Commit e3f416ba authored by Chunchi Che's avatar Chunchi Che

fix confirmCards in watch mode

parent 7e2a4c3a
......@@ -15,6 +15,11 @@ export default async (confirmCards: ygopro.StocGameMessage.MsgConfirmCards) => {
target.meta = meta;
// 动画
await callCardFocus(target.uuid);
if (target.code === 0) {
// 如果是对方或者是在观战模式下双方展示手牌,target的code会是0,
// 这里应该清掉meta,UI上表现是回复到卡背状态
target.meta = { id: 0, data: {}, text: {} };
}
} else {
console.warn(`card of ${card} is null`);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment