Commit af60ae7d authored by chechunchi's avatar chechunchi

fix selectChain.ts

parent 83ad52af
Pipeline #22477 passed with stages
in 15 minutes and 36 seconds
...@@ -10,14 +10,14 @@ const helper = async ( ...@@ -10,14 +10,14 @@ const helper = async (
level1, level1,
level2, level2,
response, response,
effectDescCode, effect_description,
}: { }: {
code: number; code: number;
location: ygopro.CardLocation; location: ygopro.CardLocation;
level1?: number; level1?: number;
level2?: number; level2?: number;
response: number; response: number;
effectDescCode?: number; effect_description?: number;
}, },
selecteds: Option[], selecteds: Option[],
mustSelects: Option[], mustSelects: Option[],
...@@ -32,8 +32,8 @@ const helper = async ( ...@@ -32,8 +32,8 @@ const helper = async (
: cardStore.at(location.zone, controller, location.sequence)?.code || 0; : cardStore.at(location.zone, controller, location.sequence)?.code || 0;
const meta = await fetchCard(newID); const meta = await fetchCard(newID);
const effectDesc = effectDescCode const effectDesc = effect_description
? getCardStr(meta, effectDescCode & 0xf) ? getCardStr(meta, effect_description & 0xf)
: undefined; : undefined;
const newOption: Option = { const newOption: Option = {
meta, meta,
...@@ -60,7 +60,7 @@ export const fetchCheckCardMeta = async ( ...@@ -60,7 +60,7 @@ export const fetchCheckCardMeta = async (
level1?: number; level1?: number;
level2?: number; level2?: number;
response: number; response: number;
effectDescCode?: number; effect_description?: number;
}[], }[],
selected?: boolean, selected?: boolean,
mustSelect?: boolean mustSelect?: boolean
......
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