Implemented Alirios, Enraptured

This commit is contained in:
Evan Kranzler 2020-01-11 12:48:13 -05:00
parent 38ab692aa0
commit 11c3d33ac0
3 changed files with 88 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -27,6 +27,7 @@ public final class TherosBeyondDeath extends ExpansionSet {
this.maxCardNumberInBooster = 254; this.maxCardNumberInBooster = 254;
cards.add(new SetCardInfo("Acolyte of Affliction", 206, Rarity.UNCOMMON, mage.cards.a.AcolyteOfAffliction.class)); 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("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("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)); cards.add(new SetCardInfo("Altar of the Pantheon", 231, Rarity.COMMON, mage.cards.a.AltarOfThePantheon.class));

View file

@ -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);
}
}