From ce3f3dc6394d3aae2cce86baf7c3094f7680057e Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 4 Feb 2017 18:13:39 +0100 Subject: [PATCH] * Death Rattle - Fixed that wrongly also green creatures could be targeted and were destroyed. --- Mage.Sets/src/mage/cards/d/DeathRattle.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/cards/d/DeathRattle.java b/Mage.Sets/src/mage/cards/d/DeathRattle.java index b8f8792fbc1..cceef8b4734 100644 --- a/Mage.Sets/src/mage/cards/d/DeathRattle.java +++ b/Mage.Sets/src/mage/cards/d/DeathRattle.java @@ -45,22 +45,22 @@ 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))); } public DeathRattle(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{5}{B}"); - + 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)); + } public DeathRattle(final DeathRattle card) {