mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- More robust RevealOrChoose detection
This commit is contained in:
@@ -470,7 +470,7 @@ public class AiCostDecision extends CostDecisionMakerBase {
|
|||||||
return PaymentDecision.card(hand);
|
return PaymentDecision.card(hand);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cost.getRevealFrom().containsAll(Arrays.asList(ZoneType.Hand, ZoneType.Battlefield))) { // RevealOrChoose
|
if (cost.getRevealFrom().size() == 2 && cost.getRevealFrom().containsAll(Arrays.asList(ZoneType.Hand, ZoneType.Battlefield))) { // RevealOrChoose
|
||||||
CardCollection battlefieldOrHand = CardLists.getValidCards(player.getCardsIn(ZoneType.Battlefield),
|
CardCollection battlefieldOrHand = CardLists.getValidCards(player.getCardsIn(ZoneType.Battlefield),
|
||||||
type.split(";"), player, source, ability);
|
type.split(";"), player, source, ability);
|
||||||
battlefieldOrHand.addAll(CardLists.getValidCards(hand, type.split(";"), player, source, ability));
|
battlefieldOrHand.addAll(CardLists.getValidCards(hand, type.split(";"), player, source, ability));
|
||||||
|
|||||||
Reference in New Issue
Block a user