mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12:10 -08:00
[TDM] Implement Disruptive Stormbrood
This commit is contained in:
parent
44389cbbbf
commit
076df16841
2 changed files with 65 additions and 0 deletions
64
Mage.Sets/src/mage/cards/d/DisruptiveStormbrood.java
Normal file
64
Mage.Sets/src/mage/cards/d/DisruptiveStormbrood.java
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.cards.OmenCard;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.constants.SubType;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.PowerPredicate;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jmlundeen
|
||||
*/
|
||||
public final class DisruptiveStormbrood extends OmenCard {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature with power 3 or less");
|
||||
|
||||
static {
|
||||
filter.add(new PowerPredicate(ComparisonType.OR_LESS, 3));
|
||||
}
|
||||
|
||||
public DisruptiveStormbrood(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, new CardType[]{CardType.SORCERY}, "{4}{G}", "Petty Revenge", "{1}{B}");
|
||||
|
||||
this.subtype.add(SubType.DRAGON);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When this creature enters, destroy up to one target artifact or enchantment.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect());
|
||||
ability.addTarget(new TargetPermanent(0, 1, StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Petty Revenge
|
||||
// Destroy target creature with power 3 or less.
|
||||
Effect spellEffect = new DestroyTargetEffect();
|
||||
this.getSpellCard().getSpellAbility().addEffect(spellEffect);
|
||||
this.getSpellCard().getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
|
||||
this.finalizeOmen();
|
||||
}
|
||||
|
||||
private DisruptiveStormbrood(final DisruptiveStormbrood card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DisruptiveStormbrood copy() {
|
||||
return new DisruptiveStormbrood(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -71,6 +71,7 @@ public final class TarkirDragonstorm extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Dirgur Island Dragon", 40, Rarity.COMMON, mage.cards.d.DirgurIslandDragon.class));
|
||||
cards.add(new SetCardInfo("Dismal Backwater", 254, Rarity.COMMON, mage.cards.d.DismalBackwater.class));
|
||||
cards.add(new SetCardInfo("Dispelling Exhale", 41, Rarity.COMMON, mage.cards.d.DispellingExhale.class));
|
||||
cards.add(new SetCardInfo("Disruptive Stormbrood", 178, Rarity.UNCOMMON, mage.cards.d.DisruptiveStormbrood.class));
|
||||
cards.add(new SetCardInfo("Dracogenesis", 105, Rarity.MYTHIC, mage.cards.d.Dracogenesis.class));
|
||||
cards.add(new SetCardInfo("Dragon Sniper", 139, Rarity.UNCOMMON, mage.cards.d.DragonSniper.class));
|
||||
cards.add(new SetCardInfo("Dragon's Prey", 79, Rarity.COMMON, mage.cards.d.DragonsPrey.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue