Implemented Reptilian Reflection

This commit is contained in:
Evan Kranzler 2020-04-11 10:37:55 -04:00
parent 8321a4cd2e
commit 9aa1cc28b8
3 changed files with 62 additions and 1 deletions

View file

@ -27,7 +27,7 @@ public final class HalcyonGlaze extends CardImpl {
// Whenever you cast a creature spell, Halcyon Glaze becomes a 4/4 Illusion creature with flying in addition to its other types until end of turn.
Effect effect = new BecomesCreatureSourceEffect(new HalcyonGlazeToken(), "enchantment", Duration.EndOfTurn);
effect.setText("Whenever you cast a creature spell, {this} becomes a 4/4 Illusion creature with flying in addition to its other types until end of turn");
effect.setText("{this} becomes a 4/4 Illusion creature with flying in addition to its other types until end of turn");
this.addAbility(new SpellCastControllerTriggeredAbility(effect, StaticFilters.FILTER_SPELL_A_CREATURE, false));
}

View file

@ -0,0 +1,60 @@
package mage.cards.r;
import mage.MageInt;
import mage.abilities.common.CycleControllerTriggeredAbility;
import mage.abilities.effects.common.continuous.BecomesCreatureSourceEffect;
import mage.abilities.keyword.HasteAbility;
import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.game.permanent.token.TokenImpl;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ReptilianReflection extends CardImpl {
public ReptilianReflection(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{R}");
// Whenever you cycle a card, Reptilian Reflection becomes a 5/4 Dinosaur creature with trample and haste in addition to its other types until end of turn.
this.addAbility(new CycleControllerTriggeredAbility(new BecomesCreatureSourceEffect(
new ReptilianReflectionToken(), "enchantment", Duration.EndOfTurn
).setText("{this} becomes a 5/4 Dinosaur creature with trample and haste in addition to its other types until end of turn")));
}
private ReptilianReflection(final ReptilianReflection card) {
super(card);
}
@Override
public ReptilianReflection copy() {
return new ReptilianReflection(this);
}
}
class ReptilianReflectionToken extends TokenImpl {
ReptilianReflectionToken() {
super("", "5/4 Dinosaur creature with trample and haste");
cardType.add(CardType.CREATURE);
subtype.add(SubType.DINOSAUR);
power = new MageInt(5);
toughness = new MageInt(4);
this.addAbility(TrampleAbility.getInstance());
this.addAbility(HasteAbility.getInstance());
}
private ReptilianReflectionToken(final ReptilianReflectionToken token) {
super(token);
}
public ReptilianReflectionToken copy() {
return new ReptilianReflectionToken(this);
}
}

View file

@ -227,6 +227,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
cards.add(new SetCardInfo("Raugrin Triome", 251, Rarity.RARE, mage.cards.r.RaugrinTriome.class));
cards.add(new SetCardInfo("Reconnaissance Mission", 65, Rarity.UNCOMMON, mage.cards.r.ReconnaissanceMission.class));
cards.add(new SetCardInfo("Regal Leosaur", 202, Rarity.UNCOMMON, mage.cards.r.RegalLeosaur.class));
cards.add(new SetCardInfo("Reptilian Reflection", 132, Rarity.UNCOMMON, mage.cards.r.ReptilianReflection.class));
cards.add(new SetCardInfo("Rugged Highlands", 252, Rarity.COMMON, mage.cards.r.RuggedHighlands.class));
cards.add(new SetCardInfo("Ruinous Ultimatum", 204, Rarity.RARE, mage.cards.r.RuinousUltimatum.class));
cards.add(new SetCardInfo("Sanctuary Lockdown", 28, Rarity.UNCOMMON, mage.cards.s.SanctuaryLockdown.class));