mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[DSK] Implement Rite of the Moth
This commit is contained in:
parent
25959efd55
commit
9b9318dd96
2 changed files with 40 additions and 0 deletions
39
Mage.Sets/src/mage/cards/r/RiteOfTheMoth.java
Normal file
39
Mage.Sets/src/mage/cards/r/RiteOfTheMoth.java
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldWithCounterTargetEffect;
|
||||
import mage.abilities.keyword.FlashbackAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RiteOfTheMoth extends CardImpl {
|
||||
|
||||
public RiteOfTheMoth(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{W}{B}{B}");
|
||||
|
||||
// Return target creature card from your graveyard to the battlefield with a finality counter on it.
|
||||
this.getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldWithCounterTargetEffect(CounterType.FINALITY.createInstance()));
|
||||
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
|
||||
|
||||
// Flashback {3}{W}{W}{B}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{3}{W}{W}{B}")));
|
||||
}
|
||||
|
||||
private RiteOfTheMoth(final RiteOfTheMoth card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RiteOfTheMoth copy() {
|
||||
return new RiteOfTheMoth(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -99,6 +99,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Raucous Carnival", 266, Rarity.COMMON, mage.cards.r.RaucousCarnival.class));
|
||||
cards.add(new SetCardInfo("Razorkin Needlehead", 153, Rarity.RARE, mage.cards.r.RazorkinNeedlehead.class));
|
||||
cards.add(new SetCardInfo("Razortrap Gorge", 267, Rarity.COMMON, mage.cards.r.RazortrapGorge.class));
|
||||
cards.add(new SetCardInfo("Rite of the Moth", 229, Rarity.UNCOMMON, mage.cards.r.RiteOfTheMoth.class));
|
||||
cards.add(new SetCardInfo("Savior of the Small", 27, Rarity.UNCOMMON, mage.cards.s.SaviorOfTheSmall.class));
|
||||
cards.add(new SetCardInfo("Scrabbling Skullcrab", 71, Rarity.UNCOMMON, mage.cards.s.ScrabblingSkullcrab.class));
|
||||
cards.add(new SetCardInfo("Screaming Nemesis", 157, Rarity.MYTHIC, mage.cards.s.ScreamingNemesis.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue