forked from External/mage
[DFT] Implement Trade the Helm
This commit is contained in:
parent
737a31b64b
commit
fc4d919ca0
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/t/TradeTheHelm.java
Normal file
43
Mage.Sets/src/mage/cards/t/TradeTheHelm.java
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.continuous.ExchangeControlTargetEffect;
|
||||
import mage.abilities.keyword.CyclingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TradeTheHelm extends CardImpl {
|
||||
|
||||
public TradeTheHelm(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{U}");
|
||||
|
||||
// Exchange control of target artifact or creature you control and target artifact or creature an opponent controls.
|
||||
this.getSpellAbility().addEffect(new ExchangeControlTargetEffect(
|
||||
Duration.EndOfGame, "exchange control of target artifact or creature you control " +
|
||||
"and target artifact or creature an opponent controls", false, true
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACT_OR_CREATURE));
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_OPPONENTS_PERMANENT_ARTIFACT_OR_CREATURE));
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private TradeTheHelm(final TradeTheHelm card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TradeTheHelm copy() {
|
||||
return new TradeTheHelm(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -205,6 +205,7 @@ public final class Aetherdrift extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Thopter Fabricator", 68, Rarity.RARE, mage.cards.t.ThopterFabricator.class));
|
||||
cards.add(new SetCardInfo("Thornwood Falls", 266, Rarity.COMMON, mage.cards.t.ThornwoodFalls.class));
|
||||
cards.add(new SetCardInfo("Thundering Broodwagon", 225, Rarity.UNCOMMON, mage.cards.t.ThunderingBroodwagon.class));
|
||||
cards.add(new SetCardInfo("Trade the Helm", 69, Rarity.UNCOMMON, mage.cards.t.TradeTheHelm.class));
|
||||
cards.add(new SetCardInfo("Tranquil Cove", 267, Rarity.COMMON, mage.cards.t.TranquilCove.class));
|
||||
cards.add(new SetCardInfo("Transit Mage", 70, Rarity.UNCOMMON, mage.cards.t.TransitMage.class));
|
||||
cards.add(new SetCardInfo("Tyrox, Saurid Tyrant", 149, Rarity.UNCOMMON, mage.cards.t.TyroxSauridTyrant.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue