1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-09 01:01:06 -09:00

Implemented Twisted Reflection

This commit is contained in:
Evan Kranzler 2019-05-28 22:29:12 -04:00
parent fb3c65d044
commit 840032931f
2 changed files with 46 additions and 0 deletions
Mage.Sets/src/mage

View file

@ -0,0 +1,45 @@
package mage.cards.t;
import mage.abilities.Mode;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.SwitchPowerToughnessTargetEffect;
import mage.abilities.keyword.EntwineAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class TwistedReflection extends CardImpl {
public TwistedReflection(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}");
// Choose one
// Target creature gets -6/-0 until end of turn.
this.getSpellAbility().addEffect(new BoostTargetEffect(-6, 0, Duration.EndOfTurn));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
// Switch target creature's power and toughness until end of turn.
Mode mode = new Mode(new SwitchPowerToughnessTargetEffect(Duration.EndOfTurn));
mode.addTarget(new TargetCreaturePermanent());
this.getSpellAbility().addMode(mode);
// Entwine {B}
this.addAbility(new EntwineAbility("{B}"));
}
private TwistedReflection(final TwistedReflection card) {
super(card);
}
@Override
public TwistedReflection copy() {
return new TwistedReflection(this);
}
}

View file

@ -158,6 +158,7 @@ public final class ModernHorizons extends ExpansionSet {
cards.add(new SetCardInfo("The First Sliver", 200, Rarity.MYTHIC, mage.cards.t.TheFirstSliver.class));
cards.add(new SetCardInfo("Throes of Chaos", 150, Rarity.UNCOMMON, mage.cards.t.ThroesOfChaos.class));
cards.add(new SetCardInfo("Thundering Djinn", 215, Rarity.UNCOMMON, mage.cards.t.ThunderingDjinn.class));
cards.add(new SetCardInfo("Twisted Reflection", 74, Rarity.UNCOMMON, mage.cards.t.TwistedReflection.class));
cards.add(new SetCardInfo("Umezawa's Charm", 111, Rarity.COMMON, mage.cards.u.UmezawasCharm.class));
cards.add(new SetCardInfo("Undead Augur", 112, Rarity.UNCOMMON, mage.cards.u.UndeadAugur.class));
cards.add(new SetCardInfo("Unearth", 113, Rarity.COMMON, mage.cards.u.Unearth.class));