Commit bf4a8432 authored by Chunchi Che's avatar Chunchi Che

fix card being targeted

parent b2cef4f3
Pipeline #28731 passed with stages
in 14 minutes and 8 seconds
......@@ -169,6 +169,11 @@ export default async (container: Container, move: MsgMove) => {
// 更新信息
target.code = code;
target.location = to;
if (!(from.zone === MZONE && to.zone === MZONE)) {
// if the card is moved, it no longer being targeted
// unless it move over the monster zone.
target.targeted = false;
}
// 维护完了之后,开始播放音效和动画
......
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