From efa9140134dd45de1c18153a22941b570f4248ac Mon Sep 17 00:00:00 2001 From: rifa-456 <155015128+rifa-456@users.noreply.github.com> Date: Sun, 25 Oct 2026 02:03:34 -0300 Subject: [PATCH] Fix SacredBeast selecting one card for Sacred Beasts Thunderclap Fixes #47. The place-1 branch in OnSelectCard (hint 527) also matched Thunderclap's place-2 prompt and returned a single card, so the response was rejected and the bot left the duel. It now only runs when min <= 1 && max == 1, the same condition as upstream IceYGO/windbot#267. --- Game/AI/Decks/SacredBeastExecutor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Game/AI/Decks/SacredBeastExecutor.cs b/Game/AI/Decks/SacredBeastExecutor.cs index 11372beb9..0b35083e3 100644 --- a/Game/AI/Decks/SacredBeastExecutor.cs +++ b/Game/AI/Decks/SacredBeastExecutor.cs @@ -415,7 +415,7 @@ public override IList OnSelectCard(IList cards, int min, resolvingRank10Summon = false; rank10MaterialPlan.Clear(); } - if (hint == 527 && cards.Any(c => c != null && c.Location == CardLocation.Deck && (c.IsCode(CardId.DivineAbyssOfTheSacredBeast) || c.IsCode(CardId.FallenParadiseOfTheSacredBeasts) || c.IsCode(CardId.SkyfireOfTheSacredBeast)))) + if (hint == 527 && min <= 1 && max == 1 && cards.Any(c => c != null && c.Location == CardLocation.Deck && (c.IsCode(CardId.DivineAbyssOfTheSacredBeast) || c.IsCode(CardId.FallenParadiseOfTheSacredBeasts) || c.IsCode(CardId.SkyfireOfTheSacredBeast)))) { int target = 0;