mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Implemented Dead of WInter
This commit is contained in:
parent
df6ba9fdb1
commit
8e0200fd1e
2 changed files with 54 additions and 0 deletions
53
Mage.Sets/src/mage/cards/d/DeadOfWinter.java
Normal file
53
Mage.Sets/src/mage/cards/d/DeadOfWinter.java
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.continuous.BoostAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DeadOfWinter extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
private static final FilterPermanent filter2 = new FilterControlledPermanent();
|
||||
|
||||
static {
|
||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.SNOW)));
|
||||
filter2.add(new SupertypePredicate(SuperType.SNOW));
|
||||
}
|
||||
|
||||
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter, -1);
|
||||
|
||||
public DeadOfWinter(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}");
|
||||
|
||||
// All nonsnow creatures get -X/-X until end of turn, where X is the number of snow permanents you control.
|
||||
this.getSpellAbility().addEffect(new BoostAllEffect(
|
||||
xValue, xValue, Duration.EndOfTurn, filter, false,
|
||||
"All nonsnow creatures get -X/-X until end of turn," +
|
||||
" where X is the number of snow permanents you control.", true
|
||||
));
|
||||
}
|
||||
|
||||
private DeadOfWinter(final DeadOfWinter card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeadOfWinter copy() {
|
||||
return new DeadOfWinter(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -46,6 +46,7 @@ public final class ModernHorizons extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Collector Ouphe", 158, Rarity.RARE, mage.cards.c.CollectorOuphe.class));
|
||||
cards.add(new SetCardInfo("Crashing Footfalls", 160, Rarity.RARE, mage.cards.c.CrashingFootfalls.class));
|
||||
cards.add(new SetCardInfo("Crypt Rats", 84, Rarity.UNCOMMON, mage.cards.c.CryptRats.class));
|
||||
cards.add(new SetCardInfo("Dead of Winter", 85, Rarity.RARE, mage.cards.d.DeadOfWinter.class));
|
||||
cards.add(new SetCardInfo("Deep Forest Hermit", 161, Rarity.RARE, mage.cards.d.DeepForestHermit.class));
|
||||
cards.add(new SetCardInfo("Diabolic Edict", 87, Rarity.COMMON, mage.cards.d.DiabolicEdict.class));
|
||||
cards.add(new SetCardInfo("Dismantling Blow", 5, Rarity.UNCOMMON, mage.cards.d.DismantlingBlow.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue