* Shimmer Myr - Fixed that the flash like casting to cards was wrongly only granted to artifact creature cards instead of all artifact cards.

This commit is contained in:
LevelX2 2015-05-05 10:14:47 +02:00
parent 780611541d
commit 562f6a3a89

View file

@ -38,8 +38,7 @@ import mage.constants.CardType;
import mage.constants.Duration; import mage.constants.Duration;
import mage.constants.Rarity; import mage.constants.Rarity;
import mage.constants.Zone; import mage.constants.Zone;
import mage.filter.common.FilterCreatureCard; import mage.filter.common.FilterArtifactCard;
import mage.filter.predicate.mageobject.CardTypePredicate;
/** /**
* *
@ -47,10 +46,7 @@ import mage.filter.predicate.mageobject.CardTypePredicate;
*/ */
public class ShimmerMyr extends CardImpl { public class ShimmerMyr extends CardImpl {
private static final FilterCreatureCard filter = new FilterCreatureCard("artifact cards"); private static final FilterArtifactCard filter = new FilterArtifactCard("artifact cards");
static {
filter.add(new CardTypePredicate(CardType.ARTIFACT));
}
public ShimmerMyr (UUID ownerId) { public ShimmerMyr (UUID ownerId) {
super(ownerId, 129, "Shimmer Myr", Rarity.RARE, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{3}"); super(ownerId, 129, "Shimmer Myr", Rarity.RARE, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{3}");
@ -61,8 +57,9 @@ public class ShimmerMyr extends CardImpl {
// Flash // Flash
this.addAbility(FlashAbility.getInstance()); this.addAbility(FlashAbility.getInstance());
// You may cast artifact cards as though they had flash. // You may cast artifact cards as though they had flash.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CastAsThoughItHadFlashAllEffect(Duration.WhileOnBattlefield, filter))); this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CastAsThoughItHadFlashAllEffect(Duration.WhileOnBattlefield, filter, false)));
} }
public ShimmerMyr (final ShimmerMyr card) { public ShimmerMyr (final ShimmerMyr card) {