Commit 48052612 authored by mercury233's avatar mercury233

update ChainBurn deck by handsomekiwi

parent c55b7a6a
......@@ -62,6 +62,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.SpellSet, CardId.Waboku);
AddExecutor(ExecutorType.SpellSet, CardId.ThreateningRoar);
AddExecutor(ExecutorType.SpellSet, CardId.BlazingMirrorForce);
AddExecutor(ExecutorType.SpellSet, CardId.OjamaTrio, OjamaTrioset);
AddExecutor(ExecutorType.SpellSet, BrunSpellSet);
//afer set
AddExecutor(ExecutorType.Activate, CardId.CardcarD);
......@@ -361,7 +362,7 @@ namespace WindBot.Game.AI.Decks
{
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;
return DefaultUniqueTrap();
}
......@@ -409,9 +410,8 @@ namespace WindBot.Game.AI.Decks
}
private bool RecklessGreedeff()
{
int count = 0;
IList<ClientCard> check = Bot.SpellZone;
foreach (ClientCard card in check)
int count = 0;
foreach (ClientCard card in Bot.GetSpells())
{
if (card.Id == CardId.RecklessGreed)
count++;
......@@ -441,6 +441,11 @@ namespace WindBot.Game.AI.Decks
return false;
}
private bool OjamaTrioset()
{
if (Bot.HasInSpellZone(CardId.OjamaTrio)) return false;
return true;
}
private bool OjamaTrioeff()
{
return OjamaTrioused;
......@@ -493,9 +498,9 @@ namespace WindBot.Game.AI.Decks
}
private bool DiceJarfacedown()
{
IList<ClientCard> check = Bot.MonsterZone;
foreach (ClientCard card in check)
foreach (ClientCard card in Bot.GetMonsters())
{
if (card.Id == CardId.DiceJar && card.IsFacedown())
return true;
......@@ -511,8 +516,11 @@ namespace WindBot.Game.AI.Decks
return false;
}
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()
{
......
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