mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
Implemented Alirios, Enraptured
This commit is contained in:
parent
38ab692aa0
commit
11c3d33ac0
3 changed files with 88 additions and 0 deletions
59
Mage.Sets/src/mage/cards/a/AliriosEnraptured.java
Normal file
59
Mage.Sets/src/mage/cards/a/AliriosEnraptured.java
Normal 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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue