mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[CMR] Implemented Nadier's Nightblade
This commit is contained in:
parent
ccafd1a89d
commit
7a6306fa06
2 changed files with 52 additions and 0 deletions
51
Mage.Sets/src/mage/cards/n/NadiersNightblade.java
Normal file
51
Mage.Sets/src/mage/cards/n/NadiersNightblade.java
Normal file
|
@ -0,0 +1,51 @@
|
|||
package mage.cards.n;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.LeavesBattlefieldAllTriggeredAbility;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.LoseLifeOpponentsEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.permanent.TokenPredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class NadiersNightblade extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledPermanent("a token you control");
|
||||
|
||||
static {
|
||||
filter.add(TokenPredicate.instance);
|
||||
}
|
||||
|
||||
public NadiersNightblade(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
|
||||
|
||||
this.subtype.add(SubType.ELF);
|
||||
this.subtype.add(SubType.WARRIOR);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever a token you control leaves the battlefield, each opponent loses 1 life and you gain 1 life.
|
||||
Ability ability = new LeavesBattlefieldAllTriggeredAbility(new LoseLifeOpponentsEffect(1), filter);
|
||||
ability.addEffect(new GainLifeEffect(1).concatBy("and"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private NadiersNightblade(final NadiersNightblade card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NadiersNightblade copy() {
|
||||
return new NadiersNightblade(this);
|
||||
}
|
||||
}
|
|
@ -186,6 +186,7 @@ public final class CommanderLegends extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Muldrotha, the Gravetide", 527, Rarity.MYTHIC, mage.cards.m.MuldrothaTheGravetide.class));
|
||||
cards.add(new SetCardInfo("Mulldrifter", 400, Rarity.UNCOMMON, mage.cards.m.Mulldrifter.class));
|
||||
cards.add(new SetCardInfo("Myriad Landscape", 487, Rarity.UNCOMMON, mage.cards.m.MyriadLandscape.class));
|
||||
cards.add(new SetCardInfo("Nadier's Nightblade", 136, Rarity.UNCOMMON, mage.cards.n.NadiersNightblade.class));
|
||||
cards.add(new SetCardInfo("Najeela, the Blade-Blossom", 514, Rarity.MYTHIC, mage.cards.n.NajeelaTheBladeBlossom.class));
|
||||
cards.add(new SetCardInfo("Natural Reclamation", 245, Rarity.COMMON, mage.cards.n.NaturalReclamation.class));
|
||||
cards.add(new SetCardInfo("Necrotic Hex", 137, Rarity.RARE, mage.cards.n.NecroticHex.class));
|
||||
|
|
Loading…
Reference in a new issue