Implemented Chandra, Novice Pyromancer

This commit is contained in:
Evan Kranzler 2019-06-12 08:23:42 -04:00
parent cea541e2ac
commit fc7911a93b
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,58 @@
package mage.cards.c;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.LoyaltyAbility;
import mage.abilities.common.PlaneswalkerEntersWithLoyaltyCountersAbility;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.abilities.effects.mana.BasicManaEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.common.FilterCreaturePermanent;
import mage.target.common.TargetAnyTarget;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ChandraNovicePyromancer extends CardImpl {
private static final FilterCreaturePermanent filter
= new FilterCreaturePermanent(SubType.ELEMENTAL, "Elementals");
public ChandraNovicePyromancer(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{3}{R}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.CHANDRA);
this.addAbility(new PlaneswalkerEntersWithLoyaltyCountersAbility(5));
// +1: Elementals you control get +2/+0 until end of turn.
this.addAbility(new LoyaltyAbility(
new BoostControlledEffect(2, 0, Duration.EndOfTurn, filter)
));
// -1: Add {R}{R}.
this.addAbility(new LoyaltyAbility(new BasicManaEffect(Mana.RedMana(2)), -1));
// -2: Chandra, Novice Pyromancer deals 2 damage to any target.
Ability ability = new LoyaltyAbility(new DamageTargetEffect(2), -2);
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}
private ChandraNovicePyromancer(final ChandraNovicePyromancer card) {
super(card);
}
@Override
public ChandraNovicePyromancer copy() {
return new ChandraNovicePyromancer(this);
}
}

View file

@ -1,6 +1,7 @@
package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
@ -25,5 +26,7 @@ public final class CoreSet2020 extends ExpansionSet {
this.numBoosterRare = 1;
this.ratioBoosterMythic = 8;
this.maxCardNumberInBooster = 280;
cards.add(new SetCardInfo("Chandra, Novice Pyromancer", 128, Rarity.UNCOMMON, mage.cards.c.ChandraNovicePyromancer.class));
}
}