mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 12:19:59 -08:00
[ECL] Implement Explosive Prodigy
This commit is contained in:
parent
0852333cd4
commit
c6528c3a4d
3 changed files with 50 additions and 0 deletions
48
Mage.Sets/src/mage/cards/e/ExplosiveProdigy.java
Normal file
48
Mage.Sets/src/mage/cards/e/ExplosiveProdigy.java
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
package mage.cards.e;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.ColorsAmongControlledPermanentsCount;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.AbilityWord;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.common.TargetOpponentsCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ExplosiveProdigy extends CardImpl {
|
||||
|
||||
public ExplosiveProdigy(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
||||
|
||||
this.subtype.add(SubType.ELEMENTAL);
|
||||
this.subtype.add(SubType.SORCERER);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Vivid -- When this creature enters, it deals X damage to target creature an opponent controls, where X is the number of colors among permanents you control.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(
|
||||
new DamageTargetEffect(ColorsAmongControlledPermanentsCount.ALL_PERMANENTS)
|
||||
.setText("it deals X damage to target creature an opponent controls, " +
|
||||
"where X is the number of colors among permanents you control")
|
||||
);
|
||||
ability.addTarget(new TargetOpponentsCreaturePermanent());
|
||||
this.addAbility(ability.setAbilityWord(AbilityWord.VIVID).addHint(ColorsAmongControlledPermanentsCount.ALL_PERMANENTS.getHint()));
|
||||
}
|
||||
|
||||
private ExplosiveProdigy(final ExplosiveProdigy card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExplosiveProdigy copy() {
|
||||
return new ExplosiveProdigy(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -48,6 +48,7 @@ public final class LorwynEclipsed extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Elder Auntie", 133, Rarity.COMMON, mage.cards.e.ElderAuntie.class));
|
||||
cards.add(new SetCardInfo("Emptiness", 222, Rarity.MYTHIC, mage.cards.e.Emptiness.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Emptiness", 294, Rarity.MYTHIC, mage.cards.e.Emptiness.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Explosive Prodigy", 136, Rarity.UNCOMMON, mage.cards.e.ExplosiveProdigy.class));
|
||||
cards.add(new SetCardInfo("Figure of Fable", 224, Rarity.RARE, mage.cards.f.FigureOfFable.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Figure of Fable", 372, Rarity.RARE, mage.cards.f.FigureOfFable.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Forest", 273, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ public enum AbilityWord {
|
|||
THRESHOLD("Threshold"),
|
||||
UNDERGROWTH("Undergrowth"),
|
||||
VALIANT("Valiant"),
|
||||
VIVID("Vivid"),
|
||||
VOID("Void"),
|
||||
WILL_OF_THE_COUNCIL("Will of the council"),
|
||||
WILL_OF_THE_PLANESWALKERS("Will of the planeswalkers");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue