mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implemented Cunning Nightbonder
This commit is contained in:
parent
bf2c98571a
commit
6473f544c3
2 changed files with 63 additions and 0 deletions
62
Mage.Sets/src/mage/cards/c/CunningNightbonder.java
Normal file
62
Mage.Sets/src/mage/cards/c/CunningNightbonder.java
Normal file
|
@ -0,0 +1,62 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.CantBeCounteredControlledEffect;
|
||||
import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect;
|
||||
import mage.abilities.keyword.FlashAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CunningNightbonder extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard();
|
||||
private static final FilterSpell filter2 = new FilterSpell();
|
||||
private static final Predicate predicate = new AbilityPredicate(FlashAbility.class);
|
||||
|
||||
static {
|
||||
filter.add(predicate);
|
||||
filter2.add(predicate);
|
||||
}
|
||||
|
||||
public CunningNightbonder(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U/B}{U/B}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.ROGUE);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Flash
|
||||
this.addAbility(FlashAbility.getInstance());
|
||||
|
||||
// Spells you cast with flash cost {1} less to cast and can't be countered.
|
||||
Ability ability = new SimpleStaticAbility(new SpellsCostReductionControllerEffect(filter, 1)
|
||||
.setText("spells you cast with flash cost {1} less to cast"));
|
||||
ability.addEffect(new CantBeCounteredControlledEffect(filter2, Duration.WhileOnBattlefield)
|
||||
.setText("and can't be countered"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private CunningNightbonder(final CunningNightbonder card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CunningNightbonder copy() {
|
||||
return new CunningNightbonder(this);
|
||||
}
|
||||
}
|
|
@ -81,6 +81,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Colossification", 148, Rarity.RARE, mage.cards.c.Colossification.class));
|
||||
cards.add(new SetCardInfo("Crystalline Giant", 234, Rarity.RARE, mage.cards.c.CrystallineGiant.class));
|
||||
cards.add(new SetCardInfo("Cubwarden", 7, Rarity.RARE, mage.cards.c.Cubwarden.class));
|
||||
cards.add(new SetCardInfo("Cunning Nightbonder", 219, Rarity.UNCOMMON, mage.cards.c.CunningNightbonder.class));
|
||||
cards.add(new SetCardInfo("Death's Oasis", 182, Rarity.RARE, mage.cards.d.DeathsOasis.class));
|
||||
cards.add(new SetCardInfo("Dire Tactics", 183, Rarity.UNCOMMON, mage.cards.d.DireTactics.class));
|
||||
cards.add(new SetCardInfo("Dirge Bat", 84, Rarity.RARE, mage.cards.d.DirgeBat.class));
|
||||
|
|
Loading…
Reference in a new issue