Commit 0f36966f authored by feihuaduo's avatar feihuaduo

修复卡查效果怪兽会搜索到效果外怪兽的bug

parent 8b3e0b2d
...@@ -156,7 +156,7 @@ class CardSearchInfo { ...@@ -156,7 +156,7 @@ class CardSearchInfo {
continue; continue;
} }
} }
//如果是效果怪兽 //效果怪兽
if (type == CardType.Effect.value()) { if (type == CardType.Effect.value()) {
if ((card.Type & CardType.Effect.value()) == CardType.Effect.value()) { if ((card.Type & CardType.Effect.value()) == CardType.Effect.value()) {
//如果是融合/仪式/同调/超量/连接 //如果是融合/仪式/同调/超量/连接
...@@ -167,6 +167,8 @@ class CardSearchInfo { ...@@ -167,6 +167,8 @@ class CardSearchInfo {
|| (card.Type & CardType.Link.value()) == CardType.Link.value() || (card.Type & CardType.Link.value()) == CardType.Link.value()
) )
return false; return false;
}else {
return false;
} }
}else if (type == CardType.Non_Effect.value()) { }else if (type == CardType.Non_Effect.value()) {
//非效果怪兽 //非效果怪兽
......
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