Commit c6746ebd authored by wind2009's avatar wind2009 Committed by mercury233

Add Pot of Indulgence (#106)

parent 6f3dc34a
......@@ -8,9 +8,6 @@
42790071
14558127
14558127
59438930
62015408
62015408
89538537
89538537
23434538
......@@ -22,6 +19,8 @@
2295440
18144506
35261759
49238328
49238328
68462976
68462976
10045474
......@@ -45,16 +44,16 @@
99916754
86221741
85289965
5043010
85289965
49725936
49725936
24094258
59934749
1508649
1508649
1508649
50588353
63288573
90673288
41999284
41999284
41999284
94259633
94259633
!side
......@@ -24,6 +24,7 @@ namespace WindBot.Game.AI.Decks
public const int Meluseek = 25533642;
public const int OneForOne = 2295440;
public const int PotofDesires = 35261759;
public const int PotofIndulgence = 49238328;
public const int Impermanence = 10045474;
public const int WakingtheDragon = 10813327;
public const int EvenlyMatched = 15693423;
......@@ -115,6 +116,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.Activate, CardId.MaxxC, G_activate);
AddExecutor(ExecutorType.Activate, CardId.Anti_Spell, Anti_Spell_activate);
AddExecutor(ExecutorType.Activate, CardId.PotofIndulgence, PotofIndulgence_activate);
AddExecutor(ExecutorType.Activate, field_activate);
AddExecutor(ExecutorType.Activate, CardId.SecretVillage, SecretVillage_activate);
......@@ -2155,6 +2157,32 @@ namespace WindBot.Game.AI.Decks
return false;
}
public bool PotofIndulgence_activate()
{
if (!spell_trap_activate()) return false;
if (!Bot.HasInGraveyard(CardId.Linkuriboh) && !Bot.HasInGraveyard(CardId.Hexstia))
{
int important_count = 0;
foreach (ClientCard card in Bot.ExtraDeck)
{
if (card.Id == CardId.Linkuriboh || card.Id == CardId.Hexstia)
{
important_count++;
}
}
if (important_count > 0)
{
AI.SelectPlace(SelectSTPlace(Card, true));
AI.SelectOption(1);
return true;
}
return false;
}
AI.SelectPlace(SelectSTPlace(Card, true));
AI.SelectOption(1);
return true;
}
public bool Anima_ss()
{
if (Duel.Phase != DuelPhase.Main2) return false;
......
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