mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Implemented Casualties of War
This commit is contained in:
parent
6b53d424c6
commit
2f137969ab
2 changed files with 63 additions and 0 deletions
62
Mage.Sets/src/mage/cards/c/CasualtiesOfWar.java
Normal file
62
Mage.Sets/src/mage/cards/c/CasualtiesOfWar.java
Normal file
|
@ -0,0 +1,62 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetArtifactPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
import mage.target.common.TargetEnchantmentPermanent;
|
||||
import mage.target.common.TargetLandPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CasualtiesOfWar extends CardImpl {
|
||||
|
||||
public CasualtiesOfWar(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}{B}{G}{G}");
|
||||
|
||||
// Choose one or more —
|
||||
this.getSpellAbility().getModes().setMinModes(1);
|
||||
this.getSpellAbility().getModes().setMaxModes(5);
|
||||
|
||||
// • Destroy target artifact.
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetArtifactPermanent());
|
||||
|
||||
// • Destroy target creature.
|
||||
Mode mode = new Mode(new DestroyTargetEffect());
|
||||
mode.addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addMode(mode);
|
||||
|
||||
// • Destroy target enchantment.
|
||||
mode = new Mode(new DestroyTargetEffect());
|
||||
mode.addTarget(new TargetEnchantmentPermanent());
|
||||
this.getSpellAbility().addMode(mode);
|
||||
|
||||
// • Destroy target land.
|
||||
mode = new Mode(new DestroyTargetEffect());
|
||||
mode.addTarget(new TargetLandPermanent());
|
||||
this.getSpellAbility().addMode(mode);
|
||||
|
||||
// • Destroy target planeswalker.
|
||||
mode = new Mode(new DestroyTargetEffect());
|
||||
mode.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_PLANESWALKER));
|
||||
this.getSpellAbility().addMode(mode);
|
||||
}
|
||||
|
||||
private CasualtiesOfWar(final CasualtiesOfWar card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CasualtiesOfWar copy() {
|
||||
return new CasualtiesOfWar(this);
|
||||
}
|
||||
}
|
|
@ -49,6 +49,7 @@ public final class WarOfTheSpark extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Bond of Revival", 80, Rarity.UNCOMMON, mage.cards.b.BondOfRevival.class));
|
||||
cards.add(new SetCardInfo("Bulwark Giant", 7, Rarity.COMMON, mage.cards.b.BulwarkGiant.class));
|
||||
cards.add(new SetCardInfo("Burning Prophet", 117, Rarity.COMMON, mage.cards.b.BurningProphet.class));
|
||||
cards.add(new SetCardInfo("Casualties of War", 187, Rarity.RARE, mage.cards.c.CasualtiesOfWar.class));
|
||||
cards.add(new SetCardInfo("Chainwhip Cyclops", 118, Rarity.COMMON, mage.cards.c.ChainwhipCyclops.class));
|
||||
cards.add(new SetCardInfo("Challenger Troll", 157, Rarity.UNCOMMON, mage.cards.c.ChallengerTroll.class));
|
||||
cards.add(new SetCardInfo("Chandra's Pyrohelix", 120, Rarity.COMMON, mage.cards.c.ChandrasPyrohelix.class));
|
||||
|
|
Loading…
Reference in a new issue