Commit d9831588 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/watch' into 'main'

修复观战模式下展示手牌出现的展示问题

See merge request !348
parents 7e2a4c3a e3f416ba
Pipeline #25944 passed with stages
in 7 minutes and 26 seconds
......@@ -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