* Release to the Wind - Fixed wrong card name Return to the Wind

This commit is contained in:
Oleg Agafonov 2018-01-08 10:14:00 +04:00
parent eb7166aa2f
commit daf95cda51
2 changed files with 19 additions and 20 deletions

View file

@ -50,41 +50,41 @@ import mage.target.targetpointer.FixedTarget;
* *
* @author LevelX2 * @author LevelX2
*/ */
public class ReturnToTheWind extends CardImpl { public class ReleaseToTheWind extends CardImpl {
public ReturnToTheWind(UUID ownerId, CardSetInfo setInfo) { public ReleaseToTheWind(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}"); super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}");
// Exile target nonland permanent. For as long as that card remains exiled, its owner may cast it without paying its mana cost. // Exile target nonland permanent. For as long as that card remains exiled, its owner may cast it without paying its mana cost.
getSpellAbility().addEffect(new ReturnToTheWindEffect()); getSpellAbility().addEffect(new ReleaseToTheWindEffect());
getSpellAbility().addTarget(new TargetNonlandPermanent()); getSpellAbility().addTarget(new TargetNonlandPermanent());
} }
public ReturnToTheWind(final ReturnToTheWind card) { public ReleaseToTheWind(final ReleaseToTheWind card) {
super(card); super(card);
} }
@Override @Override
public ReturnToTheWind copy() { public ReleaseToTheWind copy() {
return new ReturnToTheWind(this); return new ReleaseToTheWind(this);
} }
} }
class ReturnToTheWindEffect extends OneShotEffect { class ReleaseToTheWindEffect extends OneShotEffect {
public ReturnToTheWindEffect() { public ReleaseToTheWindEffect() {
super(Outcome.Benefit); super(Outcome.Benefit);
this.staticText = "Exile target nonland permanent. For as long as that card remains exiled, its owner may cast it without paying its mana cost"; this.staticText = "Exile target nonland permanent. For as long as that card remains exiled, its owner may cast it without paying its mana cost";
} }
public ReturnToTheWindEffect(final ReturnToTheWindEffect effect) { public ReleaseToTheWindEffect(final ReleaseToTheWindEffect effect) {
super(effect); super(effect);
} }
@Override @Override
public ReturnToTheWindEffect copy() { public ReleaseToTheWindEffect copy() {
return new ReturnToTheWindEffect(this); return new ReleaseToTheWindEffect(this);
} }
@Override @Override
@ -96,7 +96,7 @@ class ReturnToTheWindEffect extends OneShotEffect {
if (controller.moveCards(targetPermanent, Zone.EXILED, source, game)) { if (controller.moveCards(targetPermanent, Zone.EXILED, source, game)) {
Card card = game.getCard(targetPermanent.getId()); Card card = game.getCard(targetPermanent.getId());
if (card != null) { if (card != null) {
ContinuousEffect effect = new ReturnToTheWindEffectCastFromExileEffect(); ContinuousEffect effect = new ReleaseToTheWindEffectCastFromExileEffect();
effect.setTargetPointer(new FixedTarget(card.getId(), card.getZoneChangeCounter(game))); effect.setTargetPointer(new FixedTarget(card.getId(), card.getZoneChangeCounter(game)));
game.addEffect(effect, source); game.addEffect(effect, source);
} }
@ -108,14 +108,14 @@ class ReturnToTheWindEffect extends OneShotEffect {
} }
} }
class ReturnToTheWindEffectCastFromExileEffect extends AsThoughEffectImpl { class ReleaseToTheWindEffectCastFromExileEffect extends AsThoughEffectImpl {
public ReturnToTheWindEffectCastFromExileEffect() { public ReleaseToTheWindEffectCastFromExileEffect() {
super(AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, Duration.Custom, Outcome.Benefit); super(AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, Duration.Custom, Outcome.Benefit);
staticText = "For as long as that card remains exiled, its owner may cast it without paying its mana cost"; staticText = "For as long as that card remains exiled, its owner may cast it without paying its mana cost";
} }
public ReturnToTheWindEffectCastFromExileEffect(final ReturnToTheWindEffectCastFromExileEffect effect) { public ReleaseToTheWindEffectCastFromExileEffect(final ReleaseToTheWindEffectCastFromExileEffect effect) {
super(effect); super(effect);
} }
@ -125,8 +125,8 @@ class ReturnToTheWindEffectCastFromExileEffect extends AsThoughEffectImpl {
} }
@Override @Override
public ReturnToTheWindEffectCastFromExileEffect copy() { public ReleaseToTheWindEffectCastFromExileEffect copy() {
return new ReturnToTheWindEffectCastFromExileEffect(this); return new ReleaseToTheWindEffectCastFromExileEffect(this);
} }
@Override @Override

View file

@ -28,7 +28,6 @@
package mage.sets; package mage.sets;
import mage.cards.ExpansionSet; import mage.cards.ExpansionSet;
import mage.cards.o.OrazcaFrillback;
import mage.constants.Rarity; import mage.constants.Rarity;
import mage.constants.SetType; import mage.constants.SetType;
@ -174,7 +173,7 @@ public class RivalsOfIxalan extends ExpansionSet {
cards.add(new SetCardInfo("Negate", 44, Rarity.COMMON, mage.cards.n.Negate.class)); cards.add(new SetCardInfo("Negate", 44, Rarity.COMMON, mage.cards.n.Negate.class));
cards.add(new SetCardInfo("Nezahal, Primal Tide", 45, Rarity.RARE, mage.cards.n.NezahalPrimalTide.class)); cards.add(new SetCardInfo("Nezahal, Primal Tide", 45, Rarity.RARE, mage.cards.n.NezahalPrimalTide.class));
cards.add(new SetCardInfo("Oathsworn Vampire", 80, Rarity.UNCOMMON, mage.cards.o.OathswornVampire.class)); cards.add(new SetCardInfo("Oathsworn Vampire", 80, Rarity.UNCOMMON, mage.cards.o.OathswornVampire.class));
cards.add(new SetCardInfo("Orazca Frillback", 140, Rarity.COMMON, OrazcaFrillback.class)); cards.add(new SetCardInfo("Orazca Frillback", 140, Rarity.COMMON, mage.cards.o.OrazcaFrillback.class));
cards.add(new SetCardInfo("Orazca Raptor", 108, Rarity.COMMON, mage.cards.o.OrazcaRaptor.class)); cards.add(new SetCardInfo("Orazca Raptor", 108, Rarity.COMMON, mage.cards.o.OrazcaRaptor.class));
cards.add(new SetCardInfo("Orazca Relic", 181, Rarity.COMMON, mage.cards.o.OrazcaRelic.class)); cards.add(new SetCardInfo("Orazca Relic", 181, Rarity.COMMON, mage.cards.o.OrazcaRelic.class));
cards.add(new SetCardInfo("Overgrown Armasaur", 141, Rarity.COMMON, mage.cards.o.OvergrownArmasaur.class)); cards.add(new SetCardInfo("Overgrown Armasaur", 141, Rarity.COMMON, mage.cards.o.OvergrownArmasaur.class));
@ -199,7 +198,7 @@ public class RivalsOfIxalan extends ExpansionSet {
cards.add(new SetCardInfo("Rekindling Phoenix", 111, Rarity.MYTHIC, mage.cards.r.RekindlingPhoenix.class)); cards.add(new SetCardInfo("Rekindling Phoenix", 111, Rarity.MYTHIC, mage.cards.r.RekindlingPhoenix.class));
cards.add(new SetCardInfo("Relentless Raptor", 169, Rarity.UNCOMMON, mage.cards.r.RelentlessRaptor.class)); cards.add(new SetCardInfo("Relentless Raptor", 169, Rarity.UNCOMMON, mage.cards.r.RelentlessRaptor.class));
cards.add(new SetCardInfo("Resplendent Griffin", 170, Rarity.UNCOMMON, mage.cards.r.ResplendentGriffin.class)); cards.add(new SetCardInfo("Resplendent Griffin", 170, Rarity.UNCOMMON, mage.cards.r.ResplendentGriffin.class));
cards.add(new SetCardInfo("Return to the Wind", 46, Rarity.RARE, mage.cards.r.ReturnToTheWind.class)); cards.add(new SetCardInfo("Release to the Wind", 46, Rarity.RARE, mage.cards.r.ReleaseToTheWind.class));
cards.add(new SetCardInfo("River Darter", 47, Rarity.COMMON, mage.cards.r.RiverDarter.class)); cards.add(new SetCardInfo("River Darter", 47, Rarity.COMMON, mage.cards.r.RiverDarter.class));
cards.add(new SetCardInfo("Riverwise Augur", 48, Rarity.UNCOMMON, mage.cards.r.RiverwiseAugur.class)); cards.add(new SetCardInfo("Riverwise Augur", 48, Rarity.UNCOMMON, mage.cards.r.RiverwiseAugur.class));
cards.add(new SetCardInfo("Sadistic Skymarcher", 85, Rarity.UNCOMMON, mage.cards.s.SadisticSkymarcher.class)); cards.add(new SetCardInfo("Sadistic Skymarcher", 85, Rarity.UNCOMMON, mage.cards.s.SadisticSkymarcher.class));