Commit 54942b5d authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/targeted' into 'main'

fix card being targeted

See merge request !400
parents b2cef4f3 bf4a8432
...@@ -169,6 +169,11 @@ export default async (container: Container, move: MsgMove) => { ...@@ -169,6 +169,11 @@ export default async (container: Container, move: MsgMove) => {
// 更新信息 // 更新信息
target.code = code; target.code = code;
target.location = to; 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