[BRO] Implement Heavyweight Demolisher

This commit is contained in:
Evan Kranzler 2022-11-01 18:21:59 -04:00
parent c5cec1d722
commit 99288186b7
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,51 @@
package mage.cards.h;
import mage.MageInt;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.TapSourceUnlessPaysEffect;
import mage.abilities.keyword.MenaceAbility;
import mage.abilities.keyword.UnearthAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.TargetController;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class HeavyweightDemolisher extends CardImpl {
public HeavyweightDemolisher(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{7}");
this.subtype.add(SubType.CONSTRUCT);
this.power = new MageInt(8);
this.toughness = new MageInt(6);
// Menace
this.addAbility(new MenaceAbility(false));
// At the beginning of your upkeep, tap Heavyweight Demolisher unless you pay {3}.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(
new TapSourceUnlessPaysEffect(new GenericManaCost(3)),
TargetController.YOU, false
));
// Unearth {6}{R}{R}
this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{6}{R}{R}")));
}
private HeavyweightDemolisher(final HeavyweightDemolisher card) {
super(card);
}
@Override
public HeavyweightDemolisher copy() {
return new HeavyweightDemolisher(this);
}
}

View file

@ -54,6 +54,7 @@ public final class TheBrothersWar extends ExpansionSet {
cards.add(new SetCardInfo("Hajar, Loyal Bodyguard", 211, Rarity.RARE, mage.cards.h.HajarLoyalBodyguard.class));
cards.add(new SetCardInfo("Hall of Tagsin", 263, Rarity.RARE, mage.cards.h.HallOfTagsin.class));
cards.add(new SetCardInfo("Harbin, Vanguard Aviator", 212, Rarity.RARE, mage.cards.h.HarbinVanguardAviator.class));
cards.add(new SetCardInfo("Heavyweight Demolisher", 160, Rarity.UNCOMMON, mage.cards.h.HeavyweightDemolisher.class));
cards.add(new SetCardInfo("Hurkyl's Final Meditation", 52, Rarity.RARE, mage.cards.h.HurkylsFinalMeditation.class));
cards.add(new SetCardInfo("Hurkyl, Master Wizard", 51, Rarity.RARE, mage.cards.h.HurkylMasterWizard.class));
cards.add(new SetCardInfo("In the Trenches", 8, Rarity.MYTHIC, mage.cards.i.InTheTrenches.class));