Commit 87379695 authored by wind2009's avatar wind2009

Update DefaultExecutor.cs

parent 12cb873f
Pipeline #30749 passed with stage
in 38 seconds
...@@ -239,13 +239,12 @@ namespace WindBot.Game.AI ...@@ -239,13 +239,12 @@ namespace WindBot.Game.AI
}); });
SetFuncFilter(ExecutorType.Activate, () => { SetFuncFilter(ExecutorType.Activate, () => {
if (Card.IsMonster() || ((Card.Location & CardLocation.Onfield) > 0 && Card.IsFaceup())) return null;
if (Card.IsCode(5990062)) return Bot.HasInSpellZone(9373534); //[大逆转谜题]只有在自己场上有手里剑覆盖的场合才发动 if (Card.IsCode(5990062)) return Bot.HasInSpellZone(9373534); //[大逆转谜题]只有在自己场上有手里剑覆盖的场合才发动
if (Card.IsCode(3493058)) return Enemy.GetSpellCount() > 0; //[骰子旋风]对方玩家场上有魔陷才发动 if (Card.IsCode(3493058)) return Enemy.GetSpellCount() > 0; //[骰子旋风]对方玩家场上有魔陷才发动
if (Card.IsCode(22802010)) //[无差别崩坏]自己场上怪兽少于对方才发动 if (Card.IsCode(22802010)) //[无差别崩坏]自己场上怪兽少于对方才发动
return Bot.MonsterZone.Count(c => c != null && c.IsFaceup() && !c.HasType(CardType.Link)) < Enemy.MonsterZone.Count(c => c != null && c.IsFaceup() && !c.HasType(CardType.Link)); return Bot.MonsterZone.Count(c => c != null && c.IsFaceup() && !c.HasType(CardType.Link)) < Enemy.MonsterZone.Count(c => c != null && c.IsFaceup() && !c.HasType(CardType.Link));
return false;
return null;
}); });
SetFuncFilter(ExecutorType.SummonOrSet, () => { SetFuncFilter(ExecutorType.SummonOrSet, () => {
...@@ -267,7 +266,6 @@ namespace WindBot.Game.AI ...@@ -267,7 +266,6 @@ namespace WindBot.Game.AI
link_count += (card.HasType(CardType.Link)) ? card.LinkCount : 1; link_count += (card.HasType(CardType.Link)) ? card.LinkCount : 1;
if (link_count >= Card.LinkCount) return true; if (link_count >= Card.LinkCount) 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