diff --git a/Mage.Sets/src/mage/cards/a/AliriosEnraptured.java b/Mage.Sets/src/mage/cards/a/AliriosEnraptured.java new file mode 100644 index 0000000000..a9068a3090 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AliriosEnraptured.java @@ -0,0 +1,59 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTappedAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.Condition; +import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition; +import mage.abilities.decorator.ConditionalContinuousRuleModifyingEffect; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DontUntapInControllersUntapStepSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.game.permanent.token.ReflectionBlueToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AliriosEnraptured extends CardImpl { + + private static final FilterPermanent filter = new FilterControlledPermanent(SubType.REFLECTION); + private static final Condition condition = new PermanentsOnTheBattlefieldCondition(filter); + + public AliriosEnraptured(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // Alirios, Enraptured enters the battlefield tapped. + this.addAbility(new EntersBattlefieldTappedAbility()); + + // Alirios doesn't untap during your untap step if you control a Reflection. + this.addAbility(new SimpleStaticAbility(new ConditionalContinuousRuleModifyingEffect( + new DontUntapInControllersUntapStepSourceEffect(), condition + ).setText("{this} doesn't untap during your untap step if you control a Reflection"))); + + // When Alirios enters the battlefield, create a 3/2 blue Reflection creature token. + this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new ReflectionBlueToken()))); + } + + private AliriosEnraptured(final AliriosEnraptured card) { + super(card); + } + + @Override + public AliriosEnraptured copy() { + return new AliriosEnraptured(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 836ab306e7..a9082da5cd 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -27,6 +27,7 @@ public final class TherosBeyondDeath extends ExpansionSet { this.maxCardNumberInBooster = 254; cards.add(new SetCardInfo("Acolyte of Affliction", 206, Rarity.UNCOMMON, mage.cards.a.AcolyteOfAffliction.class)); + cards.add(new SetCardInfo("Alirios, Enraptured", 42, Rarity.UNCOMMON, mage.cards.a.AliriosEnraptured.class)); cards.add(new SetCardInfo("Allure of the Unknown", 207, Rarity.RARE, mage.cards.a.AllureOfTheUnknown.class)); cards.add(new SetCardInfo("Alseid of Life's Bounty", 1, Rarity.UNCOMMON, mage.cards.a.AlseidOfLifesBounty.class)); cards.add(new SetCardInfo("Altar of the Pantheon", 231, Rarity.COMMON, mage.cards.a.AltarOfThePantheon.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/ReflectionBlueToken.java b/Mage/src/main/java/mage/game/permanent/token/ReflectionBlueToken.java new file mode 100644 index 0000000000..f970ecb8ef --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/ReflectionBlueToken.java @@ -0,0 +1,28 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.constants.CardType; +import mage.constants.SubType; + +/** + * @author TheElk801 + */ +public final class ReflectionBlueToken extends TokenImpl { + + public ReflectionBlueToken() { + super("Reflection", "3/2 blue Reflection creature token"); + cardType.add(CardType.CREATURE); + color.setBlue(true); + subtype.add(SubType.REFLECTION); + power = new MageInt(3); + toughness = new MageInt(2); + } + + private ReflectionBlueToken(final ReflectionBlueToken token) { + super(token); + } + + public ReflectionBlueToken copy() { + return new ReflectionBlueToken(this); + } +}