Commit 8438970f authored by mercury233's avatar mercury233

fix やぶ蛇 of trickstar deck

parent 987c7ae3
...@@ -247,11 +247,12 @@ namespace WindBot.Game.AI.Decks ...@@ -247,11 +247,12 @@ namespace WindBot.Game.AI.Decks
AI.SelectCard(ex_best); AI.SelectCard(ex_best);
} }
} }
if (!judge || Duel.CurrentChain.GetCardCount(CardId.Grass) > 1) if (!judge || AI.Utils.ChainContainsCard(CardId.Grass))
{ {
// cannot ss from exdeck // cannot ss from exdeck or have more than 1 grass in chain
int[] secondselect = new[] int[] secondselect = new[]
{ {
CardId.borrel,
CardId.Ultimate, CardId.Ultimate,
CardId.Abyss, CardId.Abyss,
CardId.Cardian, CardId.Cardian,
...@@ -261,13 +262,20 @@ namespace WindBot.Game.AI.Decks ...@@ -261,13 +262,20 @@ namespace WindBot.Game.AI.Decks
CardId.Yellow, CardId.Yellow,
CardId.Pink CardId.Pink
}; };
if (!judge && Duel.CurrentChain.GetCardCount(CardId.Grass) == 1 && Bot.GetRemainingCount(CardId.Ghost, 2) > 0) if (!AI.Utils.ChainContainsCard(CardId.Grass))
{ {
AI.SelectCard(CardId.Ghost); if (!judge && Bot.GetRemainingCount(CardId.Ghost, 2) > 0)
AI.SelectPosition(CardPosition.FaceUpDefence); {
AI.SelectCard(CardId.Ghost);
AI.SelectPosition(CardPosition.FaceUpDefence);
}
else
AI.SelectCard(secondselect);
} }
else else
{ {
if (!judge)
AI.SelectCard(secondselect);
AI.SelectNextCard(secondselect); AI.SelectNextCard(secondselect);
AI.SelectThirdCard(secondselect); AI.SelectThirdCard(secondselect);
} }
......
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