forked from External/mage
Implemented Angelic Ascension
This commit is contained in:
parent
e185746d0c
commit
94bd458628
2 changed files with 69 additions and 0 deletions
68
Mage.Sets/src/mage/cards/a/AngelicAscension.java
Normal file
68
Mage.Sets/src/mage/cards/a/AngelicAscension.java
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.ExileTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.token.AngelToken;
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.target.common.TargetCreatureOrPlaneswalker;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class AngelicAscension extends CardImpl {
|
||||
|
||||
public AngelicAscension(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
|
||||
|
||||
// Exile target creature or planeswalker. Its controller creates a 4/4 white Angel creature token with flying.
|
||||
this.getSpellAbility().addEffect(new ExileTargetEffect());
|
||||
this.getSpellAbility().addEffect(new AngelicAscensionEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
|
||||
}
|
||||
|
||||
private AngelicAscension(final AngelicAscension card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AngelicAscension copy() {
|
||||
return new AngelicAscension(this);
|
||||
}
|
||||
}
|
||||
|
||||
class AngelicAscensionEffect extends OneShotEffect {
|
||||
|
||||
private static final Token token = new AngelToken();
|
||||
|
||||
AngelicAscensionEffect() {
|
||||
super(Outcome.PutCreatureInPlay);
|
||||
this.staticText = "Its controller creates a 4/4 white Angel creature token with flying";
|
||||
}
|
||||
|
||||
private AngelicAscensionEffect(final AngelicAscensionEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AngelicAscensionEffect copy() {
|
||||
return new AngelicAscensionEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanentOrLKIBattlefield(source.getFirstTarget());
|
||||
if (permanent == null) {
|
||||
return false;
|
||||
}
|
||||
return token.putOntoBattlefield(1, game, source.getSourceId(), permanent.getControllerId());
|
||||
}
|
||||
}
|
||||
|
|
@ -34,6 +34,7 @@ public final class CoreSet2021 extends ExpansionSet {
|
|||
this.maxCardNumberInBooster = 274;
|
||||
|
||||
cards.add(new SetCardInfo("Adherent of Hope", 321, Rarity.COMMON, mage.cards.a.AdherentOfHope.class));
|
||||
cards.add(new SetCardInfo("Angelic Ascension", 3, Rarity.UNCOMMON, mage.cards.a.AngelicAscension.class));
|
||||
cards.add(new SetCardInfo("Azusa, Lost but Seeking", 173, Rarity.RARE, mage.cards.a.AzusaLostButSeeking.class));
|
||||
cards.add(new SetCardInfo("Bad Deal", 89, Rarity.UNCOMMON, mage.cards.b.BadDeal.class));
|
||||
cards.add(new SetCardInfo("Baneslayer Angel", 6, Rarity.MYTHIC, mage.cards.b.BaneslayerAngel.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue