Commit a5d87fbf authored by 苍蓝's avatar 苍蓝

update

parent f3d66bd5
Pipeline #5942 passed with stage
in 4 minutes and 33 seconds
...@@ -51,7 +51,7 @@ namespace WindBot.Game.AI ...@@ -51,7 +51,7 @@ namespace WindBot.Game.AI
public static ClientCard GetHighestLevelMonster(this IEnumerable<ClientCard> cards, bool canBeTarget = false) public static ClientCard GetHighestLevelMonster(this IEnumerable<ClientCard> cards, bool canBeTarget = false)
{ {
return cards return cards
.Where(card => card?.Data != null && card.HasType(CardType.Monster))
.OrderBy(card => card.Level).FirstOrDefault(); .OrderBy(card => card.Level).FirstOrDefault();
} }
public static ClientCard GetHighestDefenseMonster(this IEnumerable<ClientCard> cards, bool canBeTarget = false) public static ClientCard GetHighestDefenseMonster(this IEnumerable<ClientCard> cards, bool canBeTarget = false)
......
...@@ -178,8 +178,8 @@ namespace WindBot.Game.AI.Decks ...@@ -178,8 +178,8 @@ namespace WindBot.Game.AI.Decks
return false; return false;
} }
private bool 左迁2Effect() private bool 左迁2Effect()
{ {
AI.SelectCard(Enemy.BattlingMonster); AI.SelectCard(Enemy.GetMonsters().GetHighestAttackMonster());
return true; return true;
} }
private bool 冻结Effect() private bool 冻结Effect()
...@@ -372,7 +372,7 @@ namespace WindBot.Game.AI.Decks ...@@ -372,7 +372,7 @@ namespace WindBot.Game.AI.Decks
private bool 瞄准鹰Effect() private bool 瞄准鹰Effect()
{ {
if (Bot.MonsterZone.GetMatchingCardsCount(card => card.Level >= 7) <= 1 && Bot.HasInHand(new[] { CardId.最强战旗, CardId.钢机神, CardId.恶德, CardId.旗兽, CardId.社员 })) if (Bot.MonsterZone.GetMatchingCardsCount(card => card.Level <= 7 || card.IsFaceup()) >= 2 && Bot.HasInHand(new[] { CardId.最强战旗, CardId.钢机神, CardId.恶德, CardId.旗兽, CardId.社员 }))
{ {
AI.SelectCard(CardId.瞄准鹰,CardId.突击坦克, CardId.成金恐龙王, CardId.社员, CardId.旗兽); AI.SelectCard(CardId.瞄准鹰,CardId.突击坦克, CardId.成金恐龙王, CardId.社员, CardId.旗兽);
AI.SelectNextCard(CardId.瞄准鹰, CardId.突击坦克, CardId.成金恐龙王, CardId.社员, CardId.旗兽); AI.SelectNextCard(CardId.瞄准鹰, CardId.突击坦克, CardId.成金恐龙王, CardId.社员, CardId.旗兽);
......
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