Commit 5c47d1ff authored by Chunchi Che's avatar Chunchi Che

fix filter on PENDULUM condition

parent cda9dcde
Pipeline #26146 passed with stages
in 7 minutes and 32 seconds
...@@ -55,7 +55,7 @@ function getFtsCondtions(conditions: FtsConditions): string { ...@@ -55,7 +55,7 @@ function getFtsCondtions(conditions: FtsConditions): string {
.map((type) => `(type & ${type}) > 0`) .map((type) => `(type & ${type}) > 0`)
.join(" OR "); .join(" OR ");
const levelsCondition = levels const levelsCondition = levels
.map((level) => `level = ${level}`) .map((level) => `(level & 0xff) = ${level}`)
.join(" OR "); .join(" OR ");
const atkCondition = const atkCondition =
atk.min !== null || atk.max !== null atk.min !== null || atk.max !== null
......
...@@ -115,7 +115,6 @@ export const Filter: React.FC<{ ...@@ -115,7 +115,6 @@ export const Filter: React.FC<{
type="primary" type="primary"
onClick={() => { onClick={() => {
onConfirm(newConditions); onConfirm(newConditions);
console.log(newConditions);
}} }}
> >
确定 确定
......
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