Commit 0ff86a2a authored by mercury233's avatar mercury233

update DefaultExecutor

parent 1013a11d
......@@ -147,18 +147,7 @@ namespace WindBot.Game.AI
if (Card.Location == CardLocation.Grave)
{
selected = Enemy.SpellZone.GetFloodgate();
if (selected == null)
{
foreach (ClientCard card in spells)
{
if (!card.IsFacedown())
{
selected = card;
break;
}
}
}
selected = AI.Utils.GetBestEnemySpell(true);
}
else
{
......@@ -187,7 +176,7 @@ namespace WindBot.Game.AI
if (AI.Utils.IsAllEnemyBetter(true))
{
ClientCard monster = Enemy.GetMonsters().GetHighestAttackMonster();
if (monster != null && monster.HasType(CardType.Effect) && (monster.HasType(CardType.Xyz) || monster.Level > 4))
if (monster != null && monster.HasType(CardType.Effect) && !monster.HasType(CardType.Link) && (monster.HasType(CardType.Xyz) || monster.Level > 4))
{
AI.SelectCard(monster);
return true;
......
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