* Tree of Redemption - Fixed that the set toughness from exchange was still applied after zone changes.

This commit is contained in:
LevelX2 2016-08-15 11:43:45 +02:00
parent b50c436790
commit 6b2d326f7b
2 changed files with 5 additions and 6 deletions

View file

@ -35,7 +35,6 @@ import mage.abilities.effects.Effect;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.ReplacementEffectImpl;
import mage.abilities.effects.common.CastSourceTriggeredAbility;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.keyword.TrampleAbility;
import mage.cards.Card;
import mage.cards.CardImpl;
@ -112,7 +111,7 @@ class NayaSoulbeastCastEffect extends OneShotEffect {
if (player.getLibrary().size() > 0) {
Card card = player.getLibrary().getFromTop(game);
cmc += card.getConvertedManaCost();
player.revealCards(sourceObject.getName() + " " + player.getName() + ")", new CardsImpl(card), game);
player.revealCards(sourceObject.getName() + " (" + player.getName() + ")", new CardsImpl(card), game);
}
}
}
@ -154,7 +153,7 @@ class NayaSoulbeastReplacementEffect extends ReplacementEffectImpl {
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
Object object = this.getValue("NayaSoulbeastCounters");
Permanent permanent = game.getPermanentEntering(source.getSourceId());
if (permanent!= null && object instanceof Integer) {
if (permanent != null && object instanceof Integer) {
int amount = ((Integer) object);
permanent.addCounters(CounterType.P1P1.createInstance(amount), game);
}

View file

@ -62,7 +62,7 @@ public class TreeOfRedemption extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {tap}: Exchange your life total with Tree of Redemption's toughness.
// {T}: Exchange your life total with Tree of Redemption's toughness.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new TreeOfRedemptionEffect(), new TapSourceCost()));
}
@ -80,7 +80,7 @@ class TreeOfRedemptionEffect extends OneShotEffect {
public TreeOfRedemptionEffect() {
super(Outcome.GainLife);
staticText = "Exchange your life total with Tree of Redemption's toughness";
staticText = "Exchange your life total with {this}'s toughness";
}
public TreeOfRedemptionEffect(final TreeOfRedemptionEffect effect) {
@ -105,7 +105,7 @@ class TreeOfRedemptionEffect extends OneShotEffect {
return false;
}
player.setLife(amount, game);
game.addEffect(new SetPowerToughnessSourceEffect(Integer.MIN_VALUE, life, Duration.WhileOnBattlefield, SubLayer.SetPT_7b), source);
game.addEffect(new SetPowerToughnessSourceEffect(Integer.MIN_VALUE, life, Duration.Custom, SubLayer.SetPT_7b), source);
return true;
}
}