Commit 698d8a65 authored by mercury233's avatar mercury233

Merge branch 'master' of https://github.com/IceYGO/windbot

parents 50813d1d 2073e2c1
...@@ -62,8 +62,11 @@ namespace WindBot.Game.AI.Decks ...@@ -62,8 +62,11 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.Activate, CardId.Raigeki); AddExecutor(ExecutorType.Activate, CardId.Raigeki);
AddExecutor(ExecutorType.Activate, CardId.HarpiesFeatherDuster); AddExecutor(ExecutorType.Activate, CardId.HarpiesFeatherDuster);
AddExecutor(ExecutorType.Repos, CardId.Number41BagooskaTheTerriblyTiredTapir, MonsterRepos);
AddExecutor(ExecutorType.Activate, CardId.CrystalWingSynchroDragon, CrystalWingSynchroDragonEffect); AddExecutor(ExecutorType.Activate, CardId.CrystalWingSynchroDragon, CrystalWingSynchroDragonEffect);
AddExecutor(ExecutorType.Activate, CardId.BorreloadSavageDragon, BorreloadSavageDragonEffect); AddExecutor(ExecutorType.Activate, CardId.BorreloadSavageDragon, BorreloadSavageDragonEffect);
AddExecutor(ExecutorType.Activate, CardId.ScrapGolem, ScrapGolemEffect);
// empty field // empty field
AddExecutor(ExecutorType.Activate, CardId.UnexpectedDai, UnexpectedDaiFirst); AddExecutor(ExecutorType.Activate, CardId.UnexpectedDai, UnexpectedDaiFirst);
...@@ -83,7 +86,6 @@ namespace WindBot.Game.AI.Decks ...@@ -83,7 +86,6 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.SpSummon, CardId.ScrapWyvern, ScrapWyvernSummon); AddExecutor(ExecutorType.SpSummon, CardId.ScrapWyvern, ScrapWyvernSummon);
AddExecutor(ExecutorType.Activate, CardId.ScrapWyvern, ScrapWyvernEffect); AddExecutor(ExecutorType.Activate, CardId.ScrapWyvern, ScrapWyvernEffect);
AddExecutor(ExecutorType.Activate, CardId.ScrapGolem, ScrapGolemEffect);
AddExecutor(ExecutorType.Activate, CardId.JetSynchron, JetSynchronEffect); AddExecutor(ExecutorType.Activate, CardId.JetSynchron, JetSynchronEffect);
AddExecutor(ExecutorType.SpSummon, CardId.CrystronNeedlefiber, CrystronNeedlefiberSummon); AddExecutor(ExecutorType.SpSummon, CardId.CrystronNeedlefiber, CrystronNeedlefiberSummon);
AddExecutor(ExecutorType.Activate, CardId.CrystronNeedlefiber, CrystronNeedlefiberEffect); AddExecutor(ExecutorType.Activate, CardId.CrystronNeedlefiber, CrystronNeedlefiberEffect);
...@@ -170,6 +172,8 @@ namespace WindBot.Game.AI.Decks ...@@ -170,6 +172,8 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.SpSummon, CardId.Number41BagooskaTheTerriblyTiredTapir, Number41BagooskaTheTerriblyTiredTapirSummon); AddExecutor(ExecutorType.SpSummon, CardId.Number41BagooskaTheTerriblyTiredTapir, Number41BagooskaTheTerriblyTiredTapirSummon);
AddExecutor(ExecutorType.Summon, CardId.ScrapGolem, ScrapGolemSummon);
AddExecutor(ExecutorType.SpellSet, CardId.CalledbyTheGrave); AddExecutor(ExecutorType.SpellSet, CardId.CalledbyTheGrave);
AddExecutor(ExecutorType.SpellSet, CardId.SolemnStrike); AddExecutor(ExecutorType.SpellSet, CardId.SolemnStrike);
AddExecutor(ExecutorType.Activate, CardId.SolemnStrike, DefaultSolemnStrike); AddExecutor(ExecutorType.Activate, CardId.SolemnStrike, DefaultSolemnStrike);
...@@ -322,9 +326,9 @@ namespace WindBot.Game.AI.Decks ...@@ -322,9 +326,9 @@ namespace WindBot.Game.AI.Decks
return true; return true;
} }
AI.SelectCard(new[] { AI.SelectCard(new[] {
CardId.PhotonThrasher,
CardId.Goblindbergh, CardId.Goblindbergh,
CardId.RaidenHandofTheLightsworn CardId.RaidenHandofTheLightsworn,
CardId.PhotonThrasher
}); });
return true; return true;
} }
...@@ -450,6 +454,8 @@ namespace WindBot.Game.AI.Decks ...@@ -450,6 +454,8 @@ namespace WindBot.Game.AI.Decks
private bool ScrapGolemEffect() private bool ScrapGolemEffect()
{ {
if (Bot.GetMonstersInMainZone().Count == 5)
return false;
AI.SelectCard(CardId.ScrapRecycler); AI.SelectCard(CardId.ScrapRecycler);
AI.SelectOption(0); AI.SelectOption(0);
return true; return true;
...@@ -558,7 +564,7 @@ namespace WindBot.Game.AI.Decks ...@@ -558,7 +564,7 @@ namespace WindBot.Game.AI.Decks
ClientCard target = Util.GetBestEnemyCard(); ClientCard target = Util.GetBestEnemyCard();
if (target == null) if (target == null)
return false; return false;
AI.SelectNextCard(target); AI.SelectCard(target);
return true; return true;
} }
} }
...@@ -649,6 +655,11 @@ namespace WindBot.Game.AI.Decks ...@@ -649,6 +655,11 @@ namespace WindBot.Game.AI.Decks
return !Bot.HasInMonstersZone(L4NonTuners); return !Bot.HasInMonstersZone(L4NonTuners);
} }
private bool ScrapGolemSummon()
{
return Bot.GetMonsterCount() <= 2 && Bot.HasInMonstersZoneOrInGraveyard(CardId.ScrapRecycler);
}
private bool BorreloadSavageDragonSummon() private bool BorreloadSavageDragonSummon()
{ {
if (!Bot.HasInGraveyard(new[] { if (!Bot.HasInGraveyard(new[] {
......
...@@ -213,7 +213,8 @@ namespace WindBot.Game.AI.Decks ...@@ -213,7 +213,8 @@ namespace WindBot.Game.AI.Decks
{ {
foreach (ClientCard target in Enemy.GetSpells()) foreach (ClientCard target in Enemy.GetSpells())
{ {
targets.Add(target); if (target.IsFacedown() || target.HasType(CardType.Continuous) || target.HasType(CardType.Pendulum))
targets.Add(target);
if (targets.Count >= 2) if (targets.Count >= 2)
break; break;
} }
......
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