* Death Rattle - Fixed that wrongly also green creatures could be targeted and were destroyed.
@@ -45,7 +45,8 @@ import mage.target.common.TargetCreaturePermanent;
*/
public class DeathRattle extends CardImpl {
- private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
+ private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nongreen creature");
+
static {
filter.add(Predicates.not(new ColorPredicate(ObjectColor.GREEN)));
}
@@ -53,13 +54,12 @@ public class DeathRattle extends CardImpl {
public DeathRattle(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{5}{B}");
-
// Delve
this.addAbility(new DelveAbility());
// Destroy target nongreen creature. It can't be regenerated.
this.getSpellAbility().addEffect(new DestroyTargetEffect(true));
- this.getSpellAbility().addTarget(new TargetCreaturePermanent());
+ this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
}
