Package mage.abilities.keyword

Examples of mage.abilities.keyword.SpliceOntoArcaneAbility


                    filter.add(Predicates.or(idPredicates));
                    TargetCardInHand target = new TargetCardInHand(filter);
                    controller.chooseTarget(Outcome.Benefit, target, abilityToModify, game);
                    UUID cardId = target.getFirstTarget();
                    if (cardId != null) {
                        SpliceOntoArcaneAbility selectedAbility = null;
                        for(SpliceOntoArcaneAbility ability :spliceAbilities) {
                            if (ability.getSourceId().equals(cardId)) {
                                selectedAbility = ability;
                                break;
                            }
                        }
                        if (selectedAbility != null) {
                            SpliceCardEffect spliceEffect = (SpliceCardEffect) selectedAbility.getEffects().get(0);
                            spliceEffect.apply(game, selectedAbility, abilityToModify);
                            cardsToReveal.add(game.getCard(cardId));
                            spliceAbilities.remove(selectedAbility);
                        }
                    }
View Full Code Here


        // Target player puts the top four cards of his or her library into his or her graveyard.
        this.getSpellAbility().addEffect(new PutLibraryIntoGraveTargetEffect(4));
        this.getSpellAbility().addTarget(new TargetPlayer());
        // Splice onto Arcane {1}{U}
        this.addAbility(new SpliceOntoArcaneAbility("{1}{U}"));
    }
View Full Code Here

        // Target creature you control gains protection from the color of your choice until end of turn.
        this.getSpellAbility().addEffect(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());

        // Splice onto Arcane {W}
        this.addAbility(new SpliceOntoArcaneAbility("{W}"));
    }
View Full Code Here

        this.color.setRed(true);

        // Add {R}{R}{R} to your mana pool.
        this.getSpellAbility().addEffect(new BasicManaEffect(new Mana(3, 0, 0, 0, 0, 0, 0)));
        // Splice onto Arcane {1}{R}
        this.addAbility(new SpliceOntoArcaneAbility("{1}{R}"));
    }
View Full Code Here

        // Destroy target artifact or enchantment.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        Target target = new TargetPermanent(filter);
        this.getSpellAbility().addTarget(target);
        // Splice onto Arcane {3}{G}
        this.addAbility(new SpliceOntoArcaneAbility("{3}{G}"));
    }
View Full Code Here

        // Return target legendary creature card from your graveyard to the battlefield. That creature gains haste. Exile it at the beginning of the next end step.
        this.getSpellAbility().addEffect(new GoryosVengeanceEffect());
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));

        // Splice onto Arcane {2}{B}
        this.addAbility(new SpliceOntoArcaneAbility("{2}{B}"));
    }
View Full Code Here

        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(new DestroyTargetEffect(),
                new PermanentsOnTheBattlefieldCondition(filterCondition),"If you control a Swamp, destroy target nonblack creature"));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(filterTarget) );

        // Splice onto Arcane-Exile four cards from your graveyard.
        this.addAbility(new SpliceOntoArcaneAbility(new ExileFromGraveCost(new TargetCardInYourGraveyard(4,4, new FilterCard("cards")))));
       

    }
View Full Code Here

        // If you control a Forest, each blocked creature gets +2/+2 until end of turn.
        this.getSpellAbility().addEffect(new RoarOfJukaiEffect());

        // Splice onto Arcane-An opponent gains 5 life.
        this.addAbility(new SpliceOntoArcaneAbility(new GainLifeOpponentCost(5)));
    }
View Full Code Here

        // Each time target permanent would deal damage to a creature or player this turn, it deals double that damage to that creature or player instead.
        this.getSpellAbility().addEffect(new FireServantEffect());
        this.getSpellAbility().addTarget(new TargetPermanent());
        // Splice onto Arcane {2}{R}{R}
        this.addAbility(new SpliceOntoArcaneAbility("{2}{R}{R}"));
    }
View Full Code Here

        // Target creature gains flying until end of turn.
        this.getSpellAbility().addEffect(new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        // Splice onto Arcane {1}{U}
        this.addAbility(new SpliceOntoArcaneAbility("{1}{U}"));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.keyword.SpliceOntoArcaneAbility

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.