Commit 1ca75fb7 authored by wyykak's avatar wyykak

fix logic bug

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