mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
[MH3] Implement It That Heralds the End
This commit is contained in:
parent
dca9787cb9
commit
a28d3b9d23
2 changed files with 60 additions and 0 deletions
59
Mage.Sets/src/mage/cards/i/ItThatHeraldsTheEnd.java
Normal file
59
Mage.Sets/src/mage/cards/i/ItThatHeraldsTheEnd.java
Normal file
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -25,6 +25,7 @@ public final class ModernHorizons3 extends ExpansionSet {
|
|||
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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue