Commit 0ef27ba1 authored by mercury233's avatar mercury233

fix CanDealWithUsedAlternativeWhiteDragon

parent 3b9984e2
...@@ -266,7 +266,15 @@ namespace WindBot.Game.AI.Decks ...@@ -266,7 +266,15 @@ namespace WindBot.Game.AI.Decks
UsedAlternativeWhiteDragon.Add(Card); UsedAlternativeWhiteDragon.Add(Card);
return true; return true;
} }
if (CanDealWithUsedAlternativeWhiteDragon()) if (Util.GetBotAvailZonesFromExtraDeck(Card) > 0
&& (Bot.HasInMonstersZone(new[]
{
CardId.SageWithEyesOfBlue,
CardId.WhiteStoneOfAncients,
CardId.WhiteStoneOfLegend,
CardId.WhiteDragon,
CardId.DragonSpiritOfWhite
}) || Bot.GetCountCardInZone(Bot.MonsterZone, CardId.AlternativeWhiteDragon) >= 2))
{ {
target = Util.GetBestEnemyMonster(false, true); target = Util.GetBestEnemyMonster(false, true);
AI.SelectCard(target); AI.SelectCard(target);
...@@ -887,18 +895,6 @@ namespace WindBot.Game.AI.Decks ...@@ -887,18 +895,6 @@ namespace WindBot.Game.AI.Decks
return num >= 2; return num >= 2;
} }
private bool CanDealWithUsedAlternativeWhiteDragon()
{
return Bot.HasInMonstersZone(new[]
{
CardId.SageWithEyesOfBlue,
CardId.WhiteStoneOfAncients,
CardId.WhiteStoneOfLegend,
CardId.WhiteDragon,
CardId.DragonSpiritOfWhite
}) || Bot.GetCountCardInZone(Bot.MonsterZone, CardId.AlternativeWhiteDragon)>=2 ;
}
private bool HaveEnoughWhiteDragonInHand() private bool HaveEnoughWhiteDragonInHand()
{ {
return HasTwoInHand(CardId.WhiteDragon) || ( return HasTwoInHand(CardId.WhiteDragon) || (
......
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