mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- Added Wall of Corpses from Mirage
This commit is contained in:
parent
a8070fdd76
commit
f01f8e9765
2 changed files with 54 additions and 0 deletions
53
Mage.Sets/src/mage/cards/w/WallOfCorpses.java
Normal file
53
Mage.Sets/src/mage/cards/w/WallOfCorpses.java
Normal file
|
@ -0,0 +1,53 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.keyword.DefenderAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.permanent.BlockedByIdPredicate;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
*/
|
||||
public final class WallOfCorpses extends CardImpl {
|
||||
|
||||
public WallOfCorpses(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
|
||||
this.subtype.add(SubType.WALL);
|
||||
this.power = new MageInt(0);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Defender
|
||||
this.addAbility(DefenderAbility.getInstance());
|
||||
|
||||
// {B}, Sacrifice Wall of Corpses: Destroy target creature Wall of Corpses is blocking.
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent("creature Wall of Corpses is blocking");
|
||||
filter.add(new BlockedByIdPredicate(this.getId()));
|
||||
Effect effect = new DestroyTargetEffect();
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(effect, new ManaCostsImpl("{B}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
|
||||
}
|
||||
|
||||
private WallOfCorpses(final WallOfCorpses card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WallOfCorpses copy() {
|
||||
return new WallOfCorpses(this);
|
||||
}
|
||||
}
|
|
@ -334,6 +334,7 @@ public final class Mirage extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Volcanic Dragon", 201, Rarity.RARE, mage.cards.v.VolcanicDragon.class));
|
||||
cards.add(new SetCardInfo("Volcanic Geyser", 202, Rarity.UNCOMMON, mage.cards.v.VolcanicGeyser.class));
|
||||
cards.add(new SetCardInfo("Waiting in the Weeds", 252, Rarity.RARE, mage.cards.w.WaitingInTheWeeds.class));
|
||||
cards.add(new SetCardInfo("Wall of Corpses", 151, Rarity.COMMON, mage.cards.w.WallOfCorpses.class));
|
||||
cards.add(new SetCardInfo("Wall of Resistance", 46, Rarity.COMMON, mage.cards.w.WallOfResistance.class));
|
||||
cards.add(new SetCardInfo("Wall of Roots", 253, Rarity.COMMON, mage.cards.w.WallOfRoots.class));
|
||||
cards.add(new SetCardInfo("Ward of Lights", 47, Rarity.COMMON, mage.cards.w.WardOfLights.class));
|
||||
|
|
Loading…
Reference in a new issue