Commit 2db915cc authored by Chunchi Che's avatar Chunchi Che

Merge branch 'optimize/agent' into 'main'

impl negated

See merge request !403
parents 28b814f7 ed33ad0a
Pipeline #28790 passed with stages
in 13 minutes and 58 seconds
......@@ -63,7 +63,7 @@ import {
TYPE_XYZ,
} from "@/common";
import { extraCardTypes } from "@/common";
import { CardType } from "@/stores/cardStore";
import { CardType, isCardDisabled } from "@/stores/cardStore";
import {
ActionMsg,
......@@ -352,8 +352,7 @@ export function convertCard(card: CardType, player: number): Card {
race: numberToRace(meta.data.race ?? 0),
level: meta.data.level ?? 0,
counter: getCounter(counters),
// TODO (ygo-agent): add negated
negated: false,
negated: isCardDisabled(card),
attack: meta.data.atk ?? 0,
defense: meta.data.def ?? 0,
types: extraCardTypes(meta.data.type ?? 0).map(numberToType),
......
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