Search in sources :

Example 1 with MillCardsControllerEffect

use of mage.abilities.effects.common.MillCardsControllerEffect in project mage by magefree.

the class EstridTheMaskedGraveyardEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    new MillCardsControllerEffect(7).apply(game, source);
    Player controller = game.getPlayer(source.getControllerId());
    if (controller == null) {
        return false;
    }
    controller.moveCards(controller.getGraveyard().getCards(filter, source.getSourceId(), source.getControllerId(), game), Zone.BATTLEFIELD, source, game);
    controller.moveCards(controller.getGraveyard().getCards(filter2, source.getSourceId(), source.getControllerId(), game), Zone.BATTLEFIELD, source, game);
    return true;
}
Also used : Player(mage.players.Player) MillCardsControllerEffect(mage.abilities.effects.common.MillCardsControllerEffect)

Example 2 with MillCardsControllerEffect

use of mage.abilities.effects.common.MillCardsControllerEffect in project mage by magefree.

the class DeathsOasisEffect method checkTrigger.

@Override
public boolean checkTrigger(GameEvent event, Game game) {
    if (!super.checkTrigger(event, game)) {
        return false;
    }
    ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
    if (zEvent.getTarget() == null) {
        return false;
    }
    this.getEffects().clear();
    this.addEffect(new MillCardsControllerEffect(2));
    this.addEffect(new DeathsOasisEffect(zEvent.getTarget().getManaValue()));
    return true;
}
Also used : ZoneChangeEvent(mage.game.events.ZoneChangeEvent) MillCardsControllerEffect(mage.abilities.effects.common.MillCardsControllerEffect)

Aggregations

MillCardsControllerEffect (mage.abilities.effects.common.MillCardsControllerEffect)2 ZoneChangeEvent (mage.game.events.ZoneChangeEvent)1 Player (mage.players.Player)1