Commit a829ae8c authored by mercury233's avatar mercury233

fix EvenlyMatchedToBP

parent 0ef3daf5
...@@ -57,7 +57,8 @@ namespace WindBot.Game.AI.Decks ...@@ -57,7 +57,8 @@ namespace WindBot.Game.AI.Decks
public GrenMajuThunderBoarderExecutor(GameAI ai, Duel duel) public GrenMajuThunderBoarderExecutor(GameAI ai, Duel duel)
: base(ai, duel) : base(ai, duel)
{ {
AddExecutor(ExecutorType.GoToBattlePhase, EvenlyMatchedToBP);
AddExecutor(ExecutorType.Activate, CardId.EvenlyMatched, EvenlyMatchedeff); AddExecutor(ExecutorType.Activate, CardId.EvenlyMatched, EvenlyMatchedeff);
//Sticker //Sticker
AddExecutor(ExecutorType.Activate, CardId.MacroCosmos, MacroCosmoseff); AddExecutor(ExecutorType.Activate, CardId.MacroCosmos, MacroCosmoseff);
...@@ -102,19 +103,11 @@ namespace WindBot.Game.AI.Decks ...@@ -102,19 +103,11 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.SpellSet, SpellSet); AddExecutor(ExecutorType.SpellSet, SpellSet);
} }
bool CardOfDemiseeff_used = false; bool CardOfDemiseeff_used = false;
bool plan_A = false;
bool eater_eff = false; bool eater_eff = false;
public override void OnNewTurn() public override void OnNewTurn()
{ {
eater_eff = false; eater_eff = false;
CardOfDemiseeff_used = false; CardOfDemiseeff_used = false;
if (Bot.HasInHand(CardId.EvenlyMatched) && Duel.Turn == 2 && Enemy.GetFieldCount()>=2)
{
Logger.DebugWriteLine("***********plan_A");
plan_A = true;
//todo:Duel.Global.ToBattlePhase = true;
}
} }
public override void OnNewPhase() public override void OnNewPhase()
...@@ -182,15 +175,17 @@ namespace WindBot.Game.AI.Decks ...@@ -182,15 +175,17 @@ namespace WindBot.Game.AI.Decks
return Duel.Player == 1; return Duel.Player == 1;
} }
private bool EvenlyMatchedToBP()
{
return Bot.HasInHand(CardId.EvenlyMatched) && Duel.Turn >= 2 && Enemy.GetFieldCount() >= 2;
}
private bool EvenlyMatchedeff() private bool EvenlyMatchedeff()
{ {
// todo:Duel.Global.ToBattlePhase = false;
plan_A = false;
return true; return true;
} }
private bool InfiniteImpermanenceeff() private bool InfiniteImpermanenceeff()
{ {
if (plan_A) return false;
AI.SelectPlace(Zones.z2); AI.SelectPlace(Zones.z2);
ClientCard target = Enemy.MonsterZone.GetShouldBeDisabledBeforeItUseEffectMonster(); ClientCard target = Enemy.MonsterZone.GetShouldBeDisabledBeforeItUseEffectMonster();
if(target!=null) if(target!=null)
...@@ -368,21 +363,18 @@ namespace WindBot.Game.AI.Decks ...@@ -368,21 +363,18 @@ namespace WindBot.Game.AI.Decks
private bool InspectBoardersummon() private bool InspectBoardersummon()
{ {
if (plan_A) return false;
AI.SelectPlace(Zones.z4 | Zones.z0); AI.SelectPlace(Zones.z4 | Zones.z0);
return true; return true;
} }
private bool GrenMajuDaEizosummon() private bool GrenMajuDaEizosummon()
{ {
if (Duel.Turn == 1) return false; if (Duel.Turn == 1) return false;
if (plan_A) return false;
AI.SelectPlace(Zones.z4 | Zones.z0); AI.SelectPlace(Zones.z4 | Zones.z0);
return Bot.Banished.Count >= 6; return Bot.Banished.Count >= 6;
} }
private bool ThunderKingRaiOhsummon() private bool ThunderKingRaiOhsummon()
{ {
if (plan_A) return false;
AI.SelectPlace(Zones.z4 | Zones.z0); AI.SelectPlace(Zones.z4 | Zones.z0);
return true; return true;
} }
...@@ -440,7 +432,6 @@ namespace WindBot.Game.AI.Decks ...@@ -440,7 +432,6 @@ namespace WindBot.Game.AI.Decks
private bool EaterOfMillionssp() private bool EaterOfMillionssp()
{ {
if (Bot.HasInMonstersZone(CardId.InspectBoarder) && !eater_eff) return false; if (Bot.HasInMonstersZone(CardId.InspectBoarder) && !eater_eff) return false;
if (plan_A) return false;
if (AI.Utils.GetProblematicEnemyMonster() == null && Bot.ExtraDeck.Count < 5) return false; if (AI.Utils.GetProblematicEnemyMonster() == null && Bot.ExtraDeck.Count < 5) return false;
if (Bot.GetMonstersInMainZone().Count >= 5) return false; if (Bot.GetMonstersInMainZone().Count >= 5) return false;
if (AI.Utils.IsTurn1OrMain2()) return false; if (AI.Utils.IsTurn1OrMain2()) return false;
...@@ -547,7 +538,6 @@ namespace WindBot.Game.AI.Decks ...@@ -547,7 +538,6 @@ namespace WindBot.Game.AI.Decks
private bool SpellSet() private bool SpellSet()
{ {
if (plan_A) return false;
int count = 0; int count = 0;
foreach(ClientCard check in Bot.Hand) foreach(ClientCard check in Bot.Hand)
{ {
......
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