Examples of ReturnToHandTargetEffect


Examples of mage.abilities.effects.common.ReturnToHandTargetEffect

  public CallToMind(UUID ownerId) {
    super(ownerId, 47, "Call to Mind", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{2}{U}");
    this.expansionSetCode = "M11";
    this.color.setBlue(true);

    this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
    this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));
  }
View Full Code Here

Examples of mage.abilities.effects.common.ReturnToHandTargetEffect

    this.subtype.add("Wizard");
    this.color.setBlue(true);
    this.power = new MageInt(2);
    this.toughness = new MageInt(2);

    Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect());
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.effects.common.ReturnToHandTargetEffect

  public Disentomb(UUID ownerId) {
    super(ownerId, 92, "Disentomb", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{B}");
    this.expansionSetCode = "M10";
    this.color.setBlack(true);
    this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));
    this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  }
View Full Code Here

Examples of mage.abilities.effects.common.ReturnToHandTargetEffect

    this.addAbility(ability1);

    LoyaltyAbility ability2 = new LoyaltyAbility(new JaceTheMindSculptorEffect2(), 0);
    this.addAbility(ability2);

    LoyaltyAbility ability3 = new LoyaltyAbility(new ReturnToHandTargetEffect(), -1);
    ability3.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability3);

    LoyaltyAbility ability4 = new LoyaltyAbility(new JaceTheMindSculptorEffect3(), -12);
    ability4.addTarget(new TargetPlayer());
View Full Code Here

Examples of mage.abilities.effects.common.ReturnToHandTargetEffect

    this.subtype.add("Zombie");
    this.color.setBlack(true);
    this.power = new MageInt(2);
    this.toughness = new MageInt(3);

    Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), true);
    ability.addTarget(new TargetCardInYourGraveyard());
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.effects.common.ReturnToHandTargetEffect

  public Unsummon(UUID ownerId) {
    super(ownerId, 122, "Unsummon", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{U}");
    this.expansionSetCode = "10E";
    this.color.setBlue(true);
    this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  }
View Full Code Here

Examples of mage.abilities.effects.common.ReturnToHandTargetEffect

  public NaturesSpiral(UUID ownerId) {
    super(ownerId, 196, "Nature's Spiral", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{1}{G}");
    this.expansionSetCode = "M10";
    this.color.setGreen(true);
    this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));
    this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  }
View Full Code Here

Examples of mage.abilities.effects.common.ReturnToHandTargetEffect

        // Kicker {1}{U} (You may pay an additional {1}{U} as you cast this spell.)
        this.addAbility(new KickerAbility("{1}{U}"));

        // Return target nonland permanent to its owner's hand. If Into the Roil was kicked, draw a card.
        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new DrawCardSourceControllerEffect(1),
                KickedCondition.getInstance(),
                "If {this} was kicked, draw a card"));
        this.getSpellAbility().addTarget(new TargetNonlandPermanent());
View Full Code Here

Examples of mage.abilities.effects.common.ReturnToHandTargetEffect

        // Choose one or both -
        this.getSpellAbility().getModes().setMinModes(1);
        this.getSpellAbility().getModes().setMaxModes(2);
        // Return target creature card from your graveyard to your hand;
        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filterCreatureCard));
        // and/or return target land card from your graveyard to your hand.
        Mode mode1 = new Mode();
        mode1.getEffects().add(new ReturnToHandTargetEffect());
        mode1.getTargets().add(new TargetCardInYourGraveyard(filterLandCard));
        this.getSpellAbility().addMode(mode1);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ReturnToHandTargetEffect

        // If an opponent had two or more creatures enter the battlefield under his or her control this turn, you may pay {U} rather than pay Whiplash Trap's mana cost.
        this.getSpellAbility().addAlternativeCost(new WhiplashAlternativeCost());
        this.addWatcher(new WhiplashTrapWatcher());

        // Return two target creatures to their owners' hands.
        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(2));
       
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.