mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
[MIC] Implemented Wilhelt, the Rotcleaver
This commit is contained in:
parent
dcfdea0a38
commit
2ab6ec8a18
2 changed files with 72 additions and 0 deletions
71
Mage.Sets/src/mage/cards/w/WilheltTheRotcleaver.java
Normal file
71
Mage.Sets/src/mage/cards/w/WilheltTheRotcleaver.java
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
package mage.cards.w;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||||
|
import mage.abilities.common.DiesCreatureTriggeredAbility;
|
||||||
|
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||||
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
|
import mage.abilities.effects.common.DoIfCostPaid;
|
||||||
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||||
|
import mage.abilities.keyword.DecayedAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.constants.SuperType;
|
||||||
|
import mage.constants.TargetController;
|
||||||
|
import mage.filter.FilterPermanent;
|
||||||
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
|
import mage.filter.predicate.Predicates;
|
||||||
|
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||||
|
import mage.game.permanent.token.ZombieDecayedToken;
|
||||||
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class WilheltTheRotcleaver extends CardImpl {
|
||||||
|
|
||||||
|
private static final FilterPermanent filter
|
||||||
|
= new FilterControlledPermanent(SubType.ZOMBIE);
|
||||||
|
private static final FilterControlledPermanent filter2
|
||||||
|
= new FilterControlledPermanent(SubType.ZOMBIE, "a Zombie");
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.add(Predicates.not(new AbilityPredicate(DecayedAbility.class)));
|
||||||
|
}
|
||||||
|
|
||||||
|
public WilheltTheRotcleaver(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}{B}");
|
||||||
|
|
||||||
|
this.addSuperType(SuperType.LEGENDARY);
|
||||||
|
this.subtype.add(SubType.ZOMBIE);
|
||||||
|
this.subtype.add(SubType.WARRIOR);
|
||||||
|
this.power = new MageInt(3);
|
||||||
|
this.toughness = new MageInt(3);
|
||||||
|
|
||||||
|
// Whenever another Zombie you control dies, if it didn't have decayed, create a 2/2 black Zombie creature token with decayed.
|
||||||
|
this.addAbility(new DiesCreatureTriggeredAbility(
|
||||||
|
new CreateTokenEffect(new ZombieDecayedToken())
|
||||||
|
.concatBy(", if it didn't have decayed, "),
|
||||||
|
false, filter
|
||||||
|
));
|
||||||
|
|
||||||
|
// At the beginning of your end step, you may sacrifice a Zombie. If you do, draw a card.
|
||||||
|
this.addAbility(new BeginningOfEndStepTriggeredAbility(new DoIfCostPaid(
|
||||||
|
new DrawCardSourceControllerEffect(1),
|
||||||
|
new SacrificeTargetCost(new TargetControlledPermanent(filter2))
|
||||||
|
), TargetController.YOU, false));
|
||||||
|
}
|
||||||
|
|
||||||
|
private WilheltTheRotcleaver(final WilheltTheRotcleaver card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WilheltTheRotcleaver copy() {
|
||||||
|
return new WilheltTheRotcleaver(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -20,6 +20,7 @@ public final class MidnightHuntCommander extends ExpansionSet {
|
||||||
this.hasBasicLands = false;
|
this.hasBasicLands = false;
|
||||||
|
|
||||||
cards.add(new SetCardInfo("Avacyn's Memorial", 31, Rarity.MYTHIC, mage.cards.a.AvacynsMemorial.class));
|
cards.add(new SetCardInfo("Avacyn's Memorial", 31, Rarity.MYTHIC, mage.cards.a.AvacynsMemorial.class));
|
||||||
|
cards.add(new SetCardInfo("Wilhelt, the Rotcleaver", 2, Rarity.MYTHIC, mage.cards.w.WilheltTheRotcleaver.class));
|
||||||
cards.add(new SetCardInfo("Zombie Apocalypse", 131, Rarity.RARE, mage.cards.z.ZombieApocalypse.class));
|
cards.add(new SetCardInfo("Zombie Apocalypse", 131, Rarity.RARE, mage.cards.z.ZombieApocalypse.class));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue