Skip to content

Commit

Permalink
[MH3] Implement It That Heralds the End
Browse files Browse the repository at this point in the history
  • Loading branch information
theelk801 committed Feb 24, 2024
1 parent dca9787 commit a28d3b9
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
59 changes: 59 additions & 0 deletions Mage.Sets/src/mage/cards/i/ItThatHeraldsTheEnd.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
package mage.cards.i;

import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.abilities.effects.common.cost.SpellsCostReductionAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.ComparisonType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.FilterCard;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.ColorlessPredicate;
import mage.filter.predicate.mageobject.ManaValuePredicate;

import java.util.UUID;

/**
* @author TheElk801
*/
public final class ItThatHeraldsTheEnd extends CardImpl {

private static final FilterCard filter = new FilterCard("colorless spells you cast with mana value 7 or greater");
private static final FilterCreaturePermanent filter2 = new FilterCreaturePermanent("colorless creatures");

static {
filter.add(ColorlessPredicate.instance);
filter.add(new ManaValuePredicate(ComparisonType.MORE_THAN, 6));
filter2.add(ColorlessPredicate.instance);
}

public ItThatHeraldsTheEnd(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{C}");

this.subtype.add(SubType.ELDRAZI);
this.subtype.add(SubType.DRONE);
this.power = new MageInt(2);
this.toughness = new MageInt(2);

// Colorless spells you cast with mana value 7 or greater cost {1} less to cast.
this.addAbility(new SimpleStaticAbility(new SpellsCostReductionAllEffect(filter, 1)));

// Other colorless creatures you control get +1/+1.
this.addAbility(new SimpleStaticAbility(new BoostControlledEffect(
1, 1, Duration.WhileOnBattlefield, filter2, true
)));
}

private ItThatHeraldsTheEnd(final ItThatHeraldsTheEnd card) {
super(card);
}

@Override
public ItThatHeraldsTheEnd copy() {
return new ItThatHeraldsTheEnd(this);
}
}
1 change: 1 addition & 0 deletions Mage.Sets/src/mage/sets/ModernHorizons3.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ private ModernHorizons3() {
cards.add(new SetCardInfo("Flooded Strand", 220, Rarity.RARE, mage.cards.f.FloodedStrand.class));
cards.add(new SetCardInfo("Forest", 308, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Island", 305, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("It That Heralds the End", 9, Rarity.UNCOMMON, mage.cards.i.ItThatHeraldsTheEnd.class));
cards.add(new SetCardInfo("Laelia, the Blade Reforged", 281, Rarity.RARE, mage.cards.l.LaeliaTheBladeReforged.class));
cards.add(new SetCardInfo("Mountain", 307, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Plains", 304, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
Expand Down

0 comments on commit a28d3b9

Please sign in to comment.