mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[VOW] Implemented Lunar Rejection
This commit is contained in:
parent
0d03ed18bd
commit
28035e1cfe
2 changed files with 60 additions and 0 deletions
59
Mage.Sets/src/mage/cards/l/LunarRejection.java
Normal file
59
Mage.Sets/src/mage/cards/l/LunarRejection.java
Normal file
|
@ -0,0 +1,59 @@
|
|||
package mage.cards.l;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
import mage.abilities.keyword.CleaveAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class LunarRejection extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterCreaturePermanent("Wolf or Werewolf creature");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
SubType.WEREWOLF.getPredicate(),
|
||||
SubType.WOLF.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public LunarRejection(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}");
|
||||
|
||||
// Cleave {3}{U}
|
||||
Ability ability = new CleaveAbility(this, new ReturnToHandTargetEffect(), "{3}{U}");
|
||||
ability.addEffect(new DrawCardSourceControllerEffect(1));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
||||
// Return target [Wolf or Werewolf] creature to its owner's hand.
|
||||
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect()
|
||||
.setText("return target [Wolf or Werewolf] creature to its owner's hand"));
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
||||
|
||||
// Draw a card.
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1).concatBy("<br>"));
|
||||
}
|
||||
|
||||
private LunarRejection(final LunarRejection card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LunarRejection copy() {
|
||||
return new LunarRejection(this);
|
||||
}
|
||||
}
|
|
@ -59,6 +59,7 @@ public final class InnistradCrimsonVow extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Hallowed Haunting", 17, Rarity.MYTHIC, mage.cards.h.HallowedHaunting.class));
|
||||
cards.add(new SetCardInfo("Island", 270, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Kindly Ancestor", 22, Rarity.COMMON, mage.cards.k.KindlyAncestor.class));
|
||||
cards.add(new SetCardInfo("Lunar Rejection", 67, Rarity.UNCOMMON, mage.cards.l.LunarRejection.class));
|
||||
cards.add(new SetCardInfo("Massive Might", 208, Rarity.COMMON, mage.cards.m.MassiveMight.class));
|
||||
cards.add(new SetCardInfo("Mindleech Ghoul", 122, Rarity.COMMON, mage.cards.m.MindleechGhoul.class));
|
||||
cards.add(new SetCardInfo("Mountain", 274, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
|
||||
|
|
Loading…
Reference in a new issue