mirror of
https://github.com/correl/mage.git
synced 2025-04-07 17:00:08 -09:00
[C21] Implemented Cursed Mirror
This commit is contained in:
parent
9bbd157b22
commit
44dc0584b6
2 changed files with 55 additions and 0 deletions
Mage.Sets/src/mage
54
Mage.Sets/src/mage/cards/c/CursedMirror.java
Normal file
54
Mage.Sets/src/mage/cards/c/CursedMirror.java
Normal file
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.effects.common.CopyPermanentEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.mana.RedManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.game.Game;
|
||||
import mage.util.functions.CopyApplier;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CursedMirror extends CardImpl {
|
||||
|
||||
public CursedMirror(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}{R}");
|
||||
|
||||
// {T}: Add {R}.
|
||||
this.addAbility(new RedManaAbility());
|
||||
|
||||
// As Cursed Mirror enters the battlefield, you may have it become a copy of any creature on the battlefield until end of turn, except it has haste.
|
||||
this.addAbility(new EntersBattlefieldAbility(
|
||||
new CopyPermanentEffect(new CursedMirrorCopyApplier()).setDuration(Duration.EndOfTurn),
|
||||
true, null, "As {this} enters the battlefield, you may have it " +
|
||||
"become a copy of any creature on the battlefield until end of turn, except it has haste.", ""
|
||||
));
|
||||
}
|
||||
|
||||
private CursedMirror(final CursedMirror card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CursedMirror copy() {
|
||||
return new CursedMirror(this);
|
||||
}
|
||||
}
|
||||
|
||||
class CursedMirrorCopyApplier extends CopyApplier {
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, MageObject blueprint, Ability source, UUID copyToObjectId) {
|
||||
blueprint.getAbilities().add(HasteAbility.getInstance());
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -77,6 +77,7 @@ public final class Commander2021Edition extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Curiosity Crafter", 24, Rarity.RARE, mage.cards.c.CuriosityCrafter.class));
|
||||
cards.add(new SetCardInfo("Curse of Disturbance", 138, Rarity.UNCOMMON, mage.cards.c.CurseOfDisturbance.class));
|
||||
cards.add(new SetCardInfo("Curse of the Swine", 118, Rarity.RARE, mage.cards.c.CurseOfTheSwine.class));
|
||||
cards.add(new SetCardInfo("Cursed Mirror", 50, Rarity.RARE, mage.cards.c.CursedMirror.class));
|
||||
cards.add(new SetCardInfo("Damnable Pact", 139, Rarity.RARE, mage.cards.d.DamnablePact.class));
|
||||
cards.add(new SetCardInfo("Daretti, Scrap Savant", 164, Rarity.MYTHIC, mage.cards.d.DarettiScrapSavant.class));
|
||||
cards.add(new SetCardInfo("Darksteel Citadel", 285, Rarity.UNCOMMON, mage.cards.d.DarksteelCitadel.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue