Commit e3728df6 authored by mercury233's avatar mercury233

fix Rank5 NeedLV5

parent 80710541
...@@ -181,6 +181,8 @@ namespace WindBot.Game.AI.Decks ...@@ -181,6 +181,8 @@ namespace WindBot.Game.AI.Decks
{ {
if (HaveOtherLV5OnField()) if (HaveOtherLV5OnField())
return true; return true;
if (Util.GetBotAvailZonesFromExtraDeck() == 0)
return false;
int lv5Count = 0; int lv5Count = 0;
foreach (ClientCard card in Bot.Hand) foreach (ClientCard card in Bot.Hand)
{ {
...@@ -216,11 +218,10 @@ namespace WindBot.Game.AI.Decks ...@@ -216,11 +218,10 @@ namespace WindBot.Game.AI.Decks
return false; return false;
if (Bot.HasInHand(new[] if (Bot.HasInHand(new[]
{ {
CardId.MistArchfiend,
CardId.WindUpSoldier, CardId.WindUpSoldier,
CardId.StarDrawing, CardId.StarDrawing,
CardId.ChronomalyGoldenJet CardId.ChronomalyGoldenJet
})) }) || (Bot.HasInHand(CardId.MistArchfiend) && NeedLV5()))
{ {
NormalSummoned = false; NormalSummoned = false;
DoubleSummonUsed = true; DoubleSummonUsed = true;
...@@ -384,9 +385,10 @@ namespace WindBot.Game.AI.Decks ...@@ -384,9 +385,10 @@ namespace WindBot.Game.AI.Decks
{ {
if (monster.HasType(CardType.Monster) && if (monster.HasType(CardType.Monster) &&
!monster.HasType(CardType.Xyz) && !monster.HasType(CardType.Xyz) &&
Util.GetBotAvailZonesFromExtraDeck(monster) > 0 &&
(monster.Level == 5 (monster.Level == 5
|| monster.IsCode(CardId.StarDrawing) || monster.IsCode(CardId.StarDrawing)
|| (monster.IsCode(CardId.WindUpSoldier)) && !monster.Equals(Card))) || monster.IsCode(CardId.WindUpSoldier) && !monster.Equals(Card)))
return true; return true;
} }
return false; return false;
......
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