forked from External/mage
[BRO] Implemented Transmogrant's Crown
This commit is contained in:
parent
c8c98bfe41
commit
d7884143de
2 changed files with 57 additions and 0 deletions
56
Mage.Sets/src/mage/cards/t/TransmograntsCrown.java
Normal file
56
Mage.Sets/src/mage/cards/t/TransmograntsCrown.java
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.common.DiesAttachedTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.OrCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TransmograntsCrown extends CardImpl {
|
||||
|
||||
public TransmograntsCrown(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// Equipped creature gets +2/+0.
|
||||
this.addAbility(new SimpleStaticAbility(new BoostEquippedEffect(2, 0)));
|
||||
|
||||
// Whenever equipped creature dies, draw a card.
|
||||
this.addAbility(new DiesAttachedTriggeredAbility(
|
||||
new DrawCardSourceControllerEffect(1), "equipped creature"
|
||||
));
|
||||
|
||||
// Equip {2} or {B}
|
||||
this.addAbility(new EquipAbility(
|
||||
Outcome.BoostCreature,
|
||||
new OrCost(
|
||||
"{2} or {B}",
|
||||
new GenericManaCost(2),
|
||||
new ManaCostsImpl<>("{B}")
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
private TransmograntsCrown(final TransmograntsCrown card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TransmograntsCrown copy() {
|
||||
return new TransmograntsCrown(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -71,6 +71,7 @@ public final class TheBrothersWar extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Titania, Voice of Gaea", 193, Rarity.MYTHIC, mage.cards.t.TitaniaVoiceOfGaea.class));
|
||||
cards.add(new SetCardInfo("Tocasia's Onulet", 39, Rarity.COMMON, mage.cards.t.TocasiasOnulet.class));
|
||||
cards.add(new SetCardInfo("Tocasia's Welcome", 30, Rarity.RARE, mage.cards.t.TocasiasWelcome.class));
|
||||
cards.add(new SetCardInfo("Transmogrant's Crown", 125, Rarity.RARE, mage.cards.t.TransmograntsCrown.class));
|
||||
cards.add(new SetCardInfo("Underground River", 267, Rarity.RARE, mage.cards.u.UndergroundRiver.class));
|
||||
cards.add(new SetCardInfo("Urza's Command", 70, Rarity.RARE, mage.cards.u.UrzasCommand.class));
|
||||
cards.add(new SetCardInfo("Urza, Lord Protector", 225, Rarity.MYTHIC, mage.cards.u.UrzaLordProtector.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue