Commit 270192fe authored by wind2009's avatar wind2009

儚无水木不在自己回合发动

parent 85ba128e
Pipeline #24373 passed with stage
in 22 seconds
......@@ -10,6 +10,11 @@ namespace WindBot.Game.AI.Decks
[Deck("Lucky", "AI_Test", "Test")]
public class LuckyExecutor : DefaultExecutor
{
public class CardId
{
public const int GhostSisterSpookyDogwood = 60643553;
}
public LuckyExecutor(GameAI ai, Duel duel)
: base(ai, duel)
{
......@@ -53,6 +58,8 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.Activate, _CardId.DimensionalBarrier, DefaultDimensionalBarrier);
AddExecutor(ExecutorType.Activate, _CardId.InterruptedKaijuSlumber, DefaultInterruptedKaijuSlumber);
AddExecutor(ExecutorType.Activate, CardId.GhostSisterSpookyDogwood, DefaultMaxxC);
AddExecutor(ExecutorType.SpSummon, _CardId.JizukirutheStarDestroyingKaiju, DefaultKaijuSpsummon);
AddExecutor(ExecutorType.SpSummon, _CardId.GadarlatheMysteryDustKaiju, DefaultKaijuSpsummon);
AddExecutor(ExecutorType.SpSummon, _CardId.GamecieltheSeaTurtleKaiju, DefaultKaijuSpsummon);
......@@ -229,11 +236,15 @@ namespace WindBot.Game.AI.Decks
private bool ImFeelingLucky()
{
if (Executors.Any(exec => (exec.Type == ExecutorType.SpSummon || exec.Type == ExecutorType.Activate) && exec.CardId == Card.Id))
return false;
return Program.Rand.Next(10) >= 5 && DefaultDontChainMyself();
}
private bool ImFeelingUnlucky()
{
if (Executors.Any(exec => (exec.Type == ExecutorType.SpSummon || exec.Type == ExecutorType.Activate) && exec.CardId == Card.Id))
return false;
return DefaultDontChainMyself();
}
......
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