mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[BRO] Implement Energy Refractor
This commit is contained in:
parent
9efe1f856d
commit
5b511ba102
2 changed files with 37 additions and 0 deletions
36
Mage.Sets/src/mage/cards/e/EnergyRefractor.java
Normal file
36
Mage.Sets/src/mage/cards/e/EnergyRefractor.java
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
package mage.cards.e;
|
||||
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.mana.AnyColorManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class EnergyRefractor extends CardImpl {
|
||||
|
||||
public EnergyRefractor(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
// When Energy Refractor enters the battlefield, draw a card.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)));
|
||||
|
||||
// {2}: Add one mana of any color.
|
||||
this.addAbility(new AnyColorManaAbility(new GenericManaCost(2)));
|
||||
}
|
||||
|
||||
private EnergyRefractor(final EnergyRefractor card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnergyRefractor copy() {
|
||||
return new EnergyRefractor(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -63,6 +63,7 @@ public final class TheBrothersWar extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Disfigure", 91, Rarity.COMMON, mage.cards.d.Disfigure.class));
|
||||
cards.add(new SetCardInfo("Draconic Destiny", 130, Rarity.MYTHIC, mage.cards.d.DraconicDestiny.class));
|
||||
cards.add(new SetCardInfo("Drafna, Founder of Lat-Nam", 47, Rarity.RARE, mage.cards.d.DrafnaFounderOfLatNam.class));
|
||||
cards.add(new SetCardInfo("Energy Refractor", 234, Rarity.COMMON, mage.cards.e.EnergyRefractor.class));
|
||||
cards.add(new SetCardInfo("Epic Confrontation", 176, Rarity.COMMON, mage.cards.e.EpicConfrontation.class));
|
||||
cards.add(new SetCardInfo("Evangel of Synthesis", 209, Rarity.UNCOMMON, mage.cards.e.EvangelOfSynthesis.class));
|
||||
cards.add(new SetCardInfo("Evolving Wilds", 261, Rarity.COMMON, mage.cards.e.EvolvingWilds.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue