mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[MH3] Implement Glaring Fleshraker
This commit is contained in:
parent
f08e70aedf
commit
8fba2e458a
2 changed files with 64 additions and 0 deletions
63
Mage.Sets/src/mage/cards/g/GlaringFleshraker.java
Normal file
63
Mage.Sets/src/mage/cards/g/GlaringFleshraker.java
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DamagePlayersEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.AnotherPredicate;
|
||||
import mage.filter.predicate.mageobject.ColorlessPredicate;
|
||||
import mage.game.permanent.token.EldraziSpawnToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GlaringFleshraker extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("a colorless spell");
|
||||
private static final FilterPermanent filter2 = new FilterCreaturePermanent("another colorless creature");
|
||||
|
||||
static {
|
||||
filter.add(ColorlessPredicate.instance);
|
||||
filter2.add(AnotherPredicate.instance);
|
||||
filter2.add(ColorlessPredicate.instance);
|
||||
}
|
||||
|
||||
public GlaringFleshraker(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{C}");
|
||||
|
||||
this.subtype.add(SubType.ELDRAZI);
|
||||
this.subtype.add(SubType.DRONE);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Whenever you cast a colorless spell, create a 0/1 colorless Eldrazi Spawn creature token with "Sacrifice this creature: Add {C}."
|
||||
this.addAbility(new SpellCastControllerTriggeredAbility(
|
||||
new CreateTokenEffect(new EldraziSpawnToken()), filter, false
|
||||
));
|
||||
|
||||
// Whenever another colorless creature enters the battlefield under your control, Glaring Fleshraker deals 1 damage to each opponent.
|
||||
this.addAbility(new EntersBattlefieldControlledTriggeredAbility(
|
||||
new DamagePlayersEffect(1, TargetController.OPPONENT), filter2
|
||||
));
|
||||
}
|
||||
|
||||
private GlaringFleshraker(final GlaringFleshraker card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GlaringFleshraker copy() {
|
||||
return new GlaringFleshraker(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -104,6 +104,7 @@ public final class ModernHorizons3 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Galvanic Discharge", 122, Rarity.COMMON, mage.cards.g.GalvanicDischarge.class));
|
||||
cards.add(new SetCardInfo("Ghostfire Slice", 123, Rarity.UNCOMMON, mage.cards.g.GhostfireSlice.class));
|
||||
cards.add(new SetCardInfo("Gift of the Viper", 156, Rarity.COMMON, mage.cards.g.GiftOfTheViper.class));
|
||||
cards.add(new SetCardInfo("Glaring Fleshraker", 7, Rarity.UNCOMMON, mage.cards.g.GlaringFleshraker.class));
|
||||
cards.add(new SetCardInfo("Glasswing Grace", 254, Rarity.UNCOMMON, mage.cards.g.GlasswingGrace.class));
|
||||
cards.add(new SetCardInfo("Glyph Elemental", 27, Rarity.UNCOMMON, mage.cards.g.GlyphElemental.class));
|
||||
cards.add(new SetCardInfo("Golden-Tail Trainer", 187, Rarity.UNCOMMON, mage.cards.g.GoldenTailTrainer.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue