mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Implemented Chandra, Novice Pyromancer
This commit is contained in:
parent
cea541e2ac
commit
fc7911a93b
2 changed files with 61 additions and 0 deletions
58
Mage.Sets/src/mage/cards/c/ChandraNovicePyromancer.java
Normal file
58
Mage.Sets/src/mage/cards/c/ChandraNovicePyromancer.java
Normal 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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue