mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
- Fixed #5686
This commit is contained in:
parent
d48bae964d
commit
bd6bb7b796
1 changed files with 2 additions and 0 deletions
|
@ -70,12 +70,14 @@ class TheMimeoplasmEffect extends OneShotEffect {
|
||||||
if (new CardsInAllGraveyardsCount(new FilterCreatureCard()).calculate(game, source, this) >= 2) {
|
if (new CardsInAllGraveyardsCount(new FilterCreatureCard()).calculate(game, source, this) >= 2) {
|
||||||
if (controller.chooseUse(Outcome.Benefit, "Do you want to exile two creature cards from graveyards?", source, game)) {
|
if (controller.chooseUse(Outcome.Benefit, "Do you want to exile two creature cards from graveyards?", source, game)) {
|
||||||
TargetCardInGraveyard targetCopy = new TargetCardInGraveyard(new FilterCreatureCard("creature card to become a copy of"));
|
TargetCardInGraveyard targetCopy = new TargetCardInGraveyard(new FilterCreatureCard("creature card to become a copy of"));
|
||||||
|
targetCopy.setNotTarget(true);
|
||||||
if (controller.choose(Outcome.Copy, targetCopy, source.getSourceId(), game)) {
|
if (controller.choose(Outcome.Copy, targetCopy, source.getSourceId(), game)) {
|
||||||
Card cardToCopy = game.getCard(targetCopy.getFirstTarget());
|
Card cardToCopy = game.getCard(targetCopy.getFirstTarget());
|
||||||
if (cardToCopy != null) {
|
if (cardToCopy != null) {
|
||||||
FilterCreatureCard filter = new FilterCreatureCard("creature card to determine amount of additional +1/+1 counters");
|
FilterCreatureCard filter = new FilterCreatureCard("creature card to determine amount of additional +1/+1 counters");
|
||||||
filter.add(Predicates.not(new CardIdPredicate(cardToCopy.getId())));
|
filter.add(Predicates.not(new CardIdPredicate(cardToCopy.getId())));
|
||||||
TargetCardInGraveyard targetCounters = new TargetCardInGraveyard(filter);
|
TargetCardInGraveyard targetCounters = new TargetCardInGraveyard(filter);
|
||||||
|
targetCounters.setNotTarget(true);
|
||||||
if (controller.choose(Outcome.Copy, targetCounters, source.getSourceId(), game)) {
|
if (controller.choose(Outcome.Copy, targetCounters, source.getSourceId(), game)) {
|
||||||
Card cardForCounters = game.getCard(targetCounters.getFirstTarget());
|
Card cardForCounters = game.getCard(targetCounters.getFirstTarget());
|
||||||
if (cardForCounters != null) {
|
if (cardForCounters != null) {
|
||||||
|
|
Loading…
Reference in a new issue