Update PlayEffect.java

This commit is contained in:
Anthony Calosa
2021-08-22 22:44:35 +00:00
parent 5764e95529
commit f59d1d106d

View File

@@ -124,6 +124,8 @@ public class PlayEffect extends SpellAbilityEffect {
int ncopied = AbilityUtils.calculateAmount(source, num, sa); int ncopied = AbilityUtils.calculateAmount(source, num, sa);
for (PaperCard cp : Aggregates.random(cards, ncopied)) { for (PaperCard cp : Aggregates.random(cards, ncopied)) {
final Card possibleCard = Card.fromPaperCard(cp, sa.getActivatingPlayer()); final Card possibleCard = Card.fromPaperCard(cp, sa.getActivatingPlayer());
if (sa.getActivatingPlayer().isAI() && possibleCard.getRules() != null && possibleCard.getRules().getAiHints().getRemAIDecks())
continue;
// Need to temporarily set the Owner so the Game is set // Need to temporarily set the Owner so the Game is set
possibleCard.setOwner(sa.getActivatingPlayer()); possibleCard.setOwner(sa.getActivatingPlayer());
choice.add(possibleCard); choice.add(possibleCard);