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;
}
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;
}
Aggregations