mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
40 lines
1.5 KiB
Java
40 lines
1.5 KiB
Java
package mage.cards.b;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.common.delayed.AtTheBeginOfNextUpkeepDelayedTriggeredAbility;
|
|
import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect;
|
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
|
import mage.abilities.effects.common.PutOnLibraryTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.filter.StaticFilters;
|
|
import mage.target.common.TargetCardInYourGraveyard;
|
|
|
|
/**
|
|
*
|
|
* @author fireshoes
|
|
*/
|
|
public final class BoneHarvest extends CardImpl {
|
|
|
|
public BoneHarvest(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{B}");
|
|
|
|
// Put any number of target creature cards from your graveyard on top of your library.
|
|
this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
|
|
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(0, Integer.MAX_VALUE, StaticFilters.FILTER_CARD_CREATURES_YOUR_GRAVEYARD));
|
|
|
|
// Draw a card at the beginning of the next turn's upkeep.
|
|
this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(
|
|
new DrawCardSourceControllerEffect(1)), false).concatBy("<br>"));
|
|
}
|
|
|
|
private BoneHarvest(final BoneHarvest card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public BoneHarvest copy() {
|
|
return new BoneHarvest(this);
|
|
}
|
|
}
|