Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.ReturnToHandSourceEffect


        this.toughness = new MageInt(1);

        // When Haru-Onna enters the battlefield, draw a card.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)));
        // Whenever you cast a Spirit or Arcane spell, you may return Haru-Onna to its owner's hand.
        this.addAbility(new SpellCastControllerTriggeredAbility(new ReturnToHandSourceEffect(true), filter, true));
    }
View Full Code Here


        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Palinchron enters the battlefield, untap up to seven lands.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new UntapLandsEffect(7)));
        // {2}{U}{U}: Return Palinchron to its owner's hand.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{2}{U}{U}")));
    }
View Full Code Here

        // When Kemuri-Onna enters the battlefield, target player discards a card.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DiscardTargetEffect(1), false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
        // Whenever you cast a Spirit or Arcane spell, you may return Kemuri-Onna to its owner's hand.
        this.addAbility(new SpellCastControllerTriggeredAbility(new ReturnToHandSourceEffect(true), filter, true));
    }
View Full Code Here

        this.toughness = new MageInt(3);

        // Trample
        this.addAbility(TrampleAbility.getInstance());
        // When Weatherseed Treefolk dies, return it to its owner's hand.
        this.addAbility(new DiesTriggeredAbility(new ReturnToHandSourceEffect()));
    }
View Full Code Here

        // When Kiri-Onna enters the battlefield, return target creature to its owner's hand.
        Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
        // Whenever you cast a Spirit or Arcane spell, you may return Kiri-Onna to its owner's hand.
        this.addAbility(new SpellCastControllerTriggeredAbility(new ReturnToHandSourceEffect(true), filter, true));
    }
View Full Code Here

       
        // Flying       
        this.addAbility(FlyingAbility.getInstance());
       
        // {1}{U}, {T} : Return target Kavu to its owner's hand.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{1}{U}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setBlue(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(3);

        // When Petrahydrox becomes the target of a spell or ability, return Petrahydrox to its owner's hand.
        this.addAbility(new BecomesTargetTriggeredAbility(new ReturnToHandSourceEffect(true)));
    }
View Full Code Here

        this.toughness = new MageInt(6);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {2}{U}, Discard a card: Return Amugaba to its owner's hand.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{2}{U}"));
        ability.addCost(new DiscardTargetCost(new TargetCardInHand()));
        this.addAbility(ability);
    }
View Full Code Here

        Object object = game.getState().getValue(source.getSourceId().toString() + "returnedCreature");
        if ((object instanceof MageObjectReference)) {
            Effect effect = new ExileTargetEffect();
            effect.setTargetPointer(new FixedTarget(((MageObjectReference)object).getSourceId()));
            effect.apply(game, source);
            return new ReturnToHandSourceEffect(true).apply(game, source);
        }
        return false;
    }
View Full Code Here

        this.toughness = new MageInt(2);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {1}{U}, Discard a card: Return Balshan Griffin to its owner's hand.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{1}{U}"));
        ability.addCost(new DiscardTargetCost(new TargetCardInHand()));
        this.addAbility(ability);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.ReturnToHandSourceEffect

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.