Commit 48052612 authored by mercury233's avatar mercury233

update ChainBurn deck by handsomekiwi

parent c55b7a6a
...@@ -62,6 +62,7 @@ namespace WindBot.Game.AI.Decks ...@@ -62,6 +62,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.SpellSet, CardId.Waboku); AddExecutor(ExecutorType.SpellSet, CardId.Waboku);
AddExecutor(ExecutorType.SpellSet, CardId.ThreateningRoar); AddExecutor(ExecutorType.SpellSet, CardId.ThreateningRoar);
AddExecutor(ExecutorType.SpellSet, CardId.BlazingMirrorForce); AddExecutor(ExecutorType.SpellSet, CardId.BlazingMirrorForce);
AddExecutor(ExecutorType.SpellSet, CardId.OjamaTrio, OjamaTrioset);
AddExecutor(ExecutorType.SpellSet, BrunSpellSet); AddExecutor(ExecutorType.SpellSet, BrunSpellSet);
//afer set //afer set
AddExecutor(ExecutorType.Activate, CardId.CardcarD); AddExecutor(ExecutorType.Activate, CardId.CardcarD);
...@@ -361,7 +362,7 @@ namespace WindBot.Game.AI.Decks ...@@ -361,7 +362,7 @@ namespace WindBot.Game.AI.Decks
{ {
if (must_chain()) return true; if (must_chain()) return true;
if (prevent_used||Duel.Phase==DuelPhase.End||Duel.Phase==DuelPhase.Main2) return false; if (prevent_used||Duel.Phase!=DuelPhase.Main1) return false;
prevent_used = true; prevent_used = true;
return DefaultUniqueTrap(); return DefaultUniqueTrap();
} }
...@@ -410,8 +411,7 @@ namespace WindBot.Game.AI.Decks ...@@ -410,8 +411,7 @@ namespace WindBot.Game.AI.Decks
private bool RecklessGreedeff() private bool RecklessGreedeff()
{ {
int count = 0; int count = 0;
IList<ClientCard> check = Bot.SpellZone; foreach (ClientCard card in Bot.GetSpells())
foreach (ClientCard card in check)
{ {
if (card.Id == CardId.RecklessGreed) if (card.Id == CardId.RecklessGreed)
count++; count++;
...@@ -441,6 +441,11 @@ namespace WindBot.Game.AI.Decks ...@@ -441,6 +441,11 @@ namespace WindBot.Game.AI.Decks
return false; return false;
} }
private bool OjamaTrioset()
{
if (Bot.HasInSpellZone(CardId.OjamaTrio)) return false;
return true;
}
private bool OjamaTrioeff() private bool OjamaTrioeff()
{ {
return OjamaTrioused; return OjamaTrioused;
...@@ -494,8 +499,8 @@ namespace WindBot.Game.AI.Decks ...@@ -494,8 +499,8 @@ namespace WindBot.Game.AI.Decks
private bool DiceJarfacedown() private bool DiceJarfacedown()
{ {
IList<ClientCard> check = Bot.MonsterZone; foreach (ClientCard card in Bot.GetMonsters())
foreach (ClientCard card in check)
{ {
if (card.Id == CardId.DiceJar && card.IsFacedown()) if (card.Id == CardId.DiceJar && card.IsFacedown())
return true; return true;
...@@ -512,7 +517,10 @@ namespace WindBot.Game.AI.Decks ...@@ -512,7 +517,10 @@ namespace WindBot.Game.AI.Decks
} }
private bool Linkuriboheff() private bool Linkuriboheff()
{ {
return DefaultDontChainMyself(); ClientCard lastchaincard = AI.Utils.GetLastChainCard();
if (lastchaincard == null) return true;
if (lastchaincard.Id == CardId.Linkuriboh) return false;
return true;
} }
/*private bool SwordsOfRevealingLight() /*private bool SwordsOfRevealingLight()
{ {
......
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