Commit 8f977a02 authored by Chunchi Che's avatar Chunchi Che

fix selectPlace

parent 15ba2b4c
Pipeline #23347 passed with stages
in 11 minutes and 52 seconds
......@@ -69,6 +69,17 @@ export default (data: Uint8Array) => {
}
}
if ((field & 0x2000) !== 0) {
// 场地魔法区
msg.places.push(
new MsgSelectPlace.SelectAblePlace({
controller,
zone: ygopro.CardZone.SZONE,
sequence: 5,
}),
);
}
if ((field & 0xc000) !== 0) {
// 灵摆区?
const zone = ygopro.CardZone.SZONE;
......
......@@ -87,11 +87,20 @@ const BgOtherBlocks: React.FC<{ op?: boolean }> = ({ op }) => {
const glowingExtra = judgeGlowing(ygopro.CardZone.EXTRA);
const glowingGraveyard = judgeGlowing(ygopro.CardZone.GRAVE);
const glowingBanish = judgeGlowing(ygopro.CardZone.REMOVED);
const snap = useSnapshot(placeStore.inner);
const field = op
? snap[ygopro.CardZone.SZONE].op[5]
: snap[ygopro.CardZone.SZONE].me[5];
return (
<div className={classnames(styles["other-blocks"], { [styles.op]: op })}>
<BgBlock className={styles.banish} glowing={!op && glowingBanish} />
<BgBlock className={styles.graveyard} glowing={!op && glowingGraveyard} />
<BgBlock className={styles.field} />
<BgBlock
className={styles.field}
onClick={() => onBlockClick(field.interactivity)}
disabled={field.disabled}
highlight={!!field.interactivity}
/>
<BgBlock className={styles.deck} />
<BgBlock
className={classnames(styles.deck, styles["extra-deck"])}
......
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