mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Memnarch - Fixed that the card type changing effect did not work correctly (wrong duration) (#6461).
This commit is contained in:
parent
d0553b3c3a
commit
7d91200612
1 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||||
|
@ -26,7 +25,7 @@ import mage.target.common.TargetArtifactPermanent;
|
||||||
public final class Memnarch extends CardImpl {
|
public final class Memnarch extends CardImpl {
|
||||||
|
|
||||||
public Memnarch(UUID ownerId, CardSetInfo setInfo) {
|
public Memnarch(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{7}");
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{7}");
|
||||||
addSuperType(SuperType.LEGENDARY);
|
addSuperType(SuperType.LEGENDARY);
|
||||||
this.subtype.add(SubType.WIZARD);
|
this.subtype.add(SubType.WIZARD);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue