Commit 00d7b610 authored by wyykak's avatar wyykak

fix logic bug

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 6f114a50
...@@ -251,7 +251,10 @@ namespace WindBot.Game.AI.Decks ...@@ -251,7 +251,10 @@ namespace WindBot.Game.AI.Decks
} }
private bool 茧墨特召() private bool 茧墨特召()
{ {
if (ActivateDescription == Util.GetStringId(CardId.茧墨场地, 2))
{
return false;
}
if (ActivateDescription == Util.GetStringId(CardId.茧墨场地, 1)) if (ActivateDescription == Util.GetStringId(CardId.茧墨场地, 1))
{ {
if (loveMode && Bot.HasInMonstersZone(CardId.早苗) && Bot.HasInMonstersZone(CardId.幼女化)) if (loveMode && Bot.HasInMonstersZone(CardId.早苗) && Bot.HasInMonstersZone(CardId.幼女化))
...@@ -266,26 +269,20 @@ namespace WindBot.Game.AI.Decks ...@@ -266,26 +269,20 @@ namespace WindBot.Game.AI.Decks
} }
return false; return false;
} }
if (ActivateDescription == Util.GetStringId(CardId.茧墨场地, 0)) if (Card.Location == CardLocation.Hand)
{ {
if (Bot.GetFieldSpellCard() != null && Bot.GetFieldSpellCard().IsCode(CardId.茧墨场地) && !Bot.GetFieldSpellCard().IsDisabled() && !JMUsed)
{
return false;
}
if (loveMode) if (loveMode)
{ {
return false; return false;
} }
JMRestrict = true; JMRestrict = true;
}
if (AlreadySucceeded())
{
AI.SelectCard(CardId.萨丽艾尔, CardId.天子翼);
return true; return true;
} }
if (Card.Location == CardLocation.Hand && if (AlreadySucceeded() || NeedToFreeSZone())
!(Bot.GetFieldSpellCard() != null && Bot.GetFieldSpellCard().IsCode(CardId.茧墨场地) && !Bot.GetFieldSpellCard().IsDisabled() && !JMUsed))
{
JMUsed = false;
return true;
}
if (Card.Location == CardLocation.FieldZone && NeedToFreeSZone())
{ {
JMUsed = true; JMUsed = true;
AI.SelectCard(CardId.萨丽艾尔, CardId.天子翼); AI.SelectCard(CardId.萨丽艾尔, CardId.天子翼);
...@@ -303,10 +300,6 @@ namespace WindBot.Game.AI.Decks ...@@ -303,10 +300,6 @@ namespace WindBot.Game.AI.Decks
AI.SelectCard(CardId.天子翼); AI.SelectCard(CardId.天子翼);
return true; return true;
} }
if (ActivateDescription == Util.GetStringId(CardId.茧墨场地, 0))
{
JMRestrict = false;
}
return false; return false;
} }
private bool 守备特召() private bool 守备特召()
...@@ -476,6 +469,10 @@ namespace WindBot.Game.AI.Decks ...@@ -476,6 +469,10 @@ namespace WindBot.Game.AI.Decks
} }
private bool CanSpSummonLove() private bool CanSpSummonLove()
{ {
if ((Duel.IsFirst && Duel.Turn % 2 == 0) || (!Duel.IsFirst && Duel.Turn % 2 == 1))
{
return false;
}
if (!Bot.HasInMonstersZoneOrInGraveyard(CardId.幼女化) || !Bot.HasInExtra(CardId.魔女)) if (!Bot.HasInMonstersZoneOrInGraveyard(CardId.幼女化) || !Bot.HasInExtra(CardId.魔女))
{ {
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