mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
* Mirror Entity - Fixed that the "gain all creature types" was applied in the wrong layer.
This commit is contained in:
parent
54788bc875
commit
e2873be2f8
5 changed files with 33 additions and 30 deletions
|
|
@ -41,7 +41,9 @@ import mage.abilities.keyword.ChangelingAbility;
|
|||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Layer;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.SubLayer;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
|
||||
|
|
@ -51,7 +53,7 @@ import mage.filter.common.FilterControlledCreaturePermanent;
|
|||
*/
|
||||
public class MirrorEntity extends CardImpl {
|
||||
|
||||
static private FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("Creatures you control");
|
||||
static private FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("Creatures you control");
|
||||
|
||||
public MirrorEntity(UUID ownerId) {
|
||||
super(ownerId, 31, "Mirror Entity", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{2}{W}");
|
||||
|
|
@ -68,7 +70,7 @@ public class MirrorEntity extends CardImpl {
|
|||
Effect effect = new SetPowerToughnessAllEffect(variableMana, variableMana, Duration.EndOfTurn, filter, true);
|
||||
effect.setText("Until end of turn, creatures you control have base power and toughness X/X");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new VariableManaCost());
|
||||
effect = new GainAbilityAllEffect(ChangelingAbility.getInstance(), Duration.EndOfTurn, filter);
|
||||
effect = new GainAbilityAllEffect(ChangelingAbility.getInstance(), Duration.EndOfTurn, filter, false, Layer.TypeChangingEffects_4, SubLayer.NA);
|
||||
effect.setText("and gain all creature types");
|
||||
ability.addEffect(effect);
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -25,19 +25,18 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.sets.returntoravnica;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.Zone;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.CantBeCounteredSourceEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.Filter;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
||||
|
|
@ -55,16 +54,14 @@ public class AbruptDecay extends CardImpl {
|
|||
filter.add(new ConvertedManaCostPredicate(Filter.ComparisonType.LessThan, 4));
|
||||
}
|
||||
|
||||
public AbruptDecay (UUID ownerId) {
|
||||
public AbruptDecay(UUID ownerId) {
|
||||
super(ownerId, 141, "Abrupt Decay", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{B}{G}");
|
||||
this.expansionSetCode = "RTR";
|
||||
|
||||
|
||||
|
||||
// Abrupt Decay can't be countered by spells or abilities.
|
||||
Effect effect = new CantBeCounteredSourceEffect();
|
||||
Effect effect = new CantBeCounteredSourceEffect();
|
||||
effect.setText("{this} can't be countered by spells or abilities");
|
||||
Ability ability = new SimpleStaticAbility(Zone.STACK,effect);
|
||||
Ability ability = new SimpleStaticAbility(Zone.STACK, effect);
|
||||
ability.setRuleAtTheTop(true);
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
@ -73,7 +70,7 @@ public class AbruptDecay extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetNonlandPermanent(filter));
|
||||
}
|
||||
|
||||
public AbruptDecay (final AbruptDecay card) {
|
||||
public AbruptDecay(final AbruptDecay card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,21 +28,23 @@
|
|||
package mage.sets.returntoravnica;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.constants.*;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
import mage.abilities.keyword.OverloadAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.TargetController;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.common.TargetNonlandPermanent;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
|
|
@ -59,7 +61,6 @@ public class CyclonicRift extends CardImpl {
|
|||
super(ownerId, 35, "Cyclonic Rift", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{1}{U}");
|
||||
this.expansionSetCode = "RTR";
|
||||
|
||||
|
||||
// Return target nonland permanent you don't control to its owner's hand.
|
||||
this.getSpellAbility().addTarget(new TargetNonlandPermanent(filter));
|
||||
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
|
||||
|
|
@ -97,7 +98,7 @@ class CyclonicRiftEffect extends OneShotEffect {
|
|||
if (!creature.getControllerId().equals(source.getControllerId())) {
|
||||
creature.moveToZone(Zone.HAND, source.getSourceId(), game, true);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -106,4 +107,4 @@ class CyclonicRiftEffect extends OneShotEffect {
|
|||
public CyclonicRiftEffect copy() {
|
||||
return new CyclonicRiftEffect(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue