Commit 0f57108c authored by Chunchi Che's avatar Chunchi Che

fix lint

parent c7647f21
......@@ -30,6 +30,6 @@ export async function getStrings(description: number): Promise<string> {
const code = description >> 4;
const index = description & 0xf;
return getCardStr(await fetchCard(code, true), index) || "";
return getCardStr(await fetchCard(code), index) || "";
}
}
......@@ -6,7 +6,7 @@ type MsgSortCard = ygopro.StocGameMessage.MsgSortCard;
export default async (sortCard: MsgSortCard) => {
await Promise.all(
sortCard.options.map(async ({ code, response }) => {
const meta = await fetchCard(code!, true);
const meta = await fetchCard(code!);
messageStore.sortCardModal.options.push({
meta,
response: response!,
......
......@@ -21,7 +21,7 @@ export const fetchSelectHintMeta = async ({
let selectHintMeta = "";
if (selectHintData > DESCRIPTION_LIMIT) {
// 针对`MSG_SELECT_PLACE`的特化逻辑
const cardMeta = await fetchCard(selectHintData, true);
const cardMeta = await fetchCard(selectHintData);
selectHintMeta = fetchStrings("!system", 569).replace(
"[%ls]",
cardMeta.text.name || "[?]"
......
......@@ -35,7 +35,7 @@ class CardArray extends Array<CardState> implements ArrayCardState {
chainIndex?: number
) => ({
uuid,
occupant: await fetchCard(id, true),
occupant: await fetchCard(id),
location: {
controler: controller,
zone: this.zone,
......@@ -44,6 +44,7 @@ class CardArray extends Array<CardState> implements ArrayCardState {
},
focus: focus ?? false,
chaining: false,
chainIndex,
directAttack: false,
counters: {},
idleInteractivities: [],
......
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