mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Update PlayEffect.java
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user