mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
[OTJ] Implement Boom Box
This commit is contained in:
parent
11e5a56ab5
commit
a808c6e947
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/b/BoomBox.java
Normal file
50
Mage.Sets/src/mage/cards/b/BoomBox.java
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetArtifactPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
import mage.target.common.TargetLandPermanent;
|
||||
import mage.target.targetpointer.EachTargetPointer;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class BoomBox extends CardImpl {
|
||||
|
||||
public BoomBox(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
// {6}, {T}, Sacrifice Boom Box: Destroy up to one target artifact, up to one target creature, and up to one target land.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new DestroyTargetEffect("")
|
||||
.setText("Destroy up to one target artifact, up to one target creature, and up to one target land")
|
||||
.setTargetPointer(new EachTargetPointer()),
|
||||
new GenericManaCost(6)
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetArtifactPermanent(0, 1));
|
||||
ability.addTarget(new TargetCreaturePermanent(0, 1));
|
||||
ability.addTarget(new TargetLandPermanent(0, 1));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private BoomBox(final BoomBox card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BoomBox copy() {
|
||||
return new BoomBox(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -37,6 +37,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Blacksnag Buzzard", 79, Rarity.COMMON, mage.cards.b.BlacksnagBuzzard.class));
|
||||
cards.add(new SetCardInfo("Blood Hustler", 80, Rarity.UNCOMMON, mage.cards.b.BloodHustler.class));
|
||||
cards.add(new SetCardInfo("Blooming Marsh", 266, Rarity.RARE, mage.cards.b.BloomingMarsh.class));
|
||||
cards.add(new SetCardInfo("Boom Box", 241, Rarity.UNCOMMON, mage.cards.b.BoomBox.class));
|
||||
cards.add(new SetCardInfo("Botanical Sanctum", 267, Rarity.RARE, mage.cards.b.BotanicalSanctum.class));
|
||||
cards.add(new SetCardInfo("Bovine Intervention", 6, Rarity.UNCOMMON, mage.cards.b.BovineIntervention.class));
|
||||
cards.add(new SetCardInfo("Bridled Bighorn", 7, Rarity.COMMON, mage.cards.b.BridledBighorn.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue