* Memnarch - Fixed that the card type changing effect did not work correctly (wrong duration) (#6461).

This commit is contained in:
LevelX2 2020-06-16 20:36:11 +02:00
parent d0553b3c3a
commit 7d91200612

View file

@ -1,4 +1,3 @@
package mage.cards.m; package mage.cards.m;
import java.util.UUID; import java.util.UUID;
@ -12,8 +11,8 @@ import mage.abilities.effects.common.continuous.GainControlTargetEffect;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Duration; import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.SuperType; import mage.constants.SuperType;
import mage.constants.Zone; import mage.constants.Zone;
import mage.target.TargetPermanent; import mage.target.TargetPermanent;
@ -34,7 +33,7 @@ public final class Memnarch extends CardImpl {
this.toughness = new MageInt(5); this.toughness = new MageInt(5);
// {1}{U}{U}: Target permanent becomes an artifact in addition to its other types. // {1}{U}{U}: Target permanent becomes an artifact in addition to its other types.
Effect effect = new AddCardTypeTargetEffect(Duration.WhileOnBattlefield, CardType.ARTIFACT); Effect effect = new AddCardTypeTargetEffect(Duration.Custom, CardType.ARTIFACT);
effect.setText("Target permanent becomes an artifact in addition to its other types"); effect.setText("Target permanent becomes an artifact in addition to its other types");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{U}{U}")); Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{U}{U}"));
ability.addTarget(new TargetPermanent()); ability.addTarget(new TargetPermanent());
@ -46,8 +45,12 @@ public final class Memnarch extends CardImpl {
this.addAbility(ability2); this.addAbility(ability2);
} }
public Memnarch(final Memnarch card){ super(card); } public Memnarch(final Memnarch card) {
super(card);
}
@Override @Override
public Memnarch copy() { return new Memnarch(this); } public Memnarch copy() {
return new Memnarch(this);
}
} }