Commit 83aabc7a authored by mercury233's avatar mercury233

update LuckyExecutor

parent 59c84707
...@@ -15,7 +15,7 @@ namespace WindBot.Game.AI.Decks ...@@ -15,7 +15,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.SpSummon, ImFeelingLucky); AddExecutor(ExecutorType.SpSummon, ImFeelingLucky);
AddExecutor(ExecutorType.Activate, ImFeelingLucky); AddExecutor(ExecutorType.Activate, ImFeelingLucky);
AddExecutor(ExecutorType.SummonOrSet, ImFeelingLucky); AddExecutor(ExecutorType.SummonOrSet, ImFeelingLucky);
AddExecutor(ExecutorType.SpellSet, ImFeelingLucky); AddExecutor(ExecutorType.SpellSet, DefaultSpellSet);
AddExecutor(ExecutorType.Repos, DefaultMonsterRepos); AddExecutor(ExecutorType.Repos, DefaultMonsterRepos);
AddExecutor(ExecutorType.Activate, _CardId.MysticalSpaceTyphoon, DefaultMysticalSpaceTyphoon); AddExecutor(ExecutorType.Activate, _CardId.MysticalSpaceTyphoon, DefaultMysticalSpaceTyphoon);
...@@ -90,6 +90,17 @@ namespace WindBot.Game.AI.Decks ...@@ -90,6 +90,17 @@ namespace WindBot.Game.AI.Decks
return Program.Rand.Next(options.Count); return Program.Rand.Next(options.Count);
} }
public override CardPosition OnSelectPosition(int cardId, IList<CardPosition> positions)
{
YGOSharp.OCGWrapper.NamedCard cardData = YGOSharp.OCGWrapper.NamedCard.Get(cardId);
if (cardData != null)
{
if (cardData.Attack <= 1000)
return CardPosition.FaceUpDefence;
}
return 0;
}
private bool ImFeelingLucky() private bool ImFeelingLucky()
{ {
return Program.Rand.Next(9) >= 3 && DefaultDontChainMyself(); return Program.Rand.Next(9) >= 3 && DefaultDontChainMyself();
......
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