mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
Implemented Tectonic Reformation
This commit is contained in:
parent
20e1497c3a
commit
70cc0a5d0e
2 changed files with 71 additions and 0 deletions
70
Mage.Sets/src/mage/cards/t/TectonicReformation.java
Normal file
70
Mage.Sets/src/mage/cards/t/TectonicReformation.java
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
import mage.abilities.keyword.CyclingAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TectonicReformation extends CardImpl {
|
||||
|
||||
public TectonicReformation(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{R}");
|
||||
|
||||
// Each land card in your hand has cycling {R}.
|
||||
this.addAbility(new SimpleStaticAbility(new TectonicReformationEffect()));
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
}
|
||||
|
||||
private TectonicReformation(final TectonicReformation card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TectonicReformation copy() {
|
||||
return new TectonicReformation(this);
|
||||
}
|
||||
}
|
||||
|
||||
class TectonicReformationEffect extends ContinuousEffectImpl {
|
||||
|
||||
TectonicReformationEffect() {
|
||||
super(Duration.WhileOnBattlefield, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
|
||||
this.staticText = "each land card in your hand has cycling {R}";
|
||||
}
|
||||
|
||||
private TectonicReformationEffect(final TectonicReformationEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TectonicReformationEffect copy() {
|
||||
return new TectonicReformationEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller == null) {
|
||||
return false;
|
||||
}
|
||||
for (Card card : controller.getHand().getCards(StaticFilters.FILTER_CARD_LAND, game)) {
|
||||
game.getState().addOtherAbility(card, new CyclingAbility(new ManaCostsImpl("{R}")));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -167,6 +167,7 @@ public final class ModernHorizons extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Talisman of Curiosity", 232, Rarity.UNCOMMON, mage.cards.t.TalismanOfCuriosity.class));
|
||||
cards.add(new SetCardInfo("Talisman of Hierarchy", 233, Rarity.UNCOMMON, mage.cards.t.TalismanOfHierarchy.class));
|
||||
cards.add(new SetCardInfo("Talisman of Resilience", 234, Rarity.UNCOMMON, mage.cards.t.TalismanOfResilience.class));
|
||||
cards.add(new SetCardInfo("Tectonic Reformation", 149, Rarity.RARE, mage.cards.t.TectonicReformation.class));
|
||||
cards.add(new SetCardInfo("Tempered Sliver", 183, Rarity.UNCOMMON, mage.cards.t.TemperedSliver.class));
|
||||
cards.add(new SetCardInfo("The First Sliver", 200, Rarity.MYTHIC, mage.cards.t.TheFirstSliver.class));
|
||||
cards.add(new SetCardInfo("Throes of Chaos", 150, Rarity.UNCOMMON, mage.cards.t.ThroesOfChaos.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue