Commit 1e05d8ba authored by xiaoye's avatar xiaoye

Update AI408AExecutor.cs

parent 485698e3
Pipeline #31683 passed with stage
in 49 seconds
......@@ -202,7 +202,7 @@ namespace WindBot.Game.AI.Decks
for (int i = 0; i < ct; i++)
res.Add(g[i]);
}
if ((Bot.GetSpellCount() > Enemy.GetSpellCount() || (Bot.HasInSpellZone(new[] { 70828912, 45986603, 97077563 }) && Enemy.GetSpellCount() < 3)) && cards.Any(c => c != null && c.IsCode(19613556)))
if ((Bot.GetSpellCount() - 1 > Enemy.GetSpellCount() || (Bot.HasInSpellZone(new[] { 70828912, 45986603, 97077563 }) && Enemy.GetSpellCount() < 3)) && cards.Any(c => c != null && c.IsCode(19613556)))
res.AddRange(cards.Where(c => c != null && c.IsCode(19613556)).ToList());
if (cards.Any(c => c != null && c.IsCode(42386471)) && cards.Any(c => c != null && !c.IsCode(42386471) && c.HasType(CardType.Monster) && c.Level < 5))
res.AddRange(cards.Where(c => c != null && c.IsCode(42386471)).ToList());
......@@ -280,9 +280,9 @@ namespace WindBot.Game.AI.Decks
}
break;
}
step++;
if (step > 5) break;
}
step++;
if (step > 5) break;
}
return Util.CheckSelectCount(res, cards, min, max);
}
......
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