* Death Rattle - Fixed that wrongly also green creatures could be targeted and were destroyed.

This commit is contained in:
LevelX2 2017-02-04 18:13:39 +01:00
parent cdd147ee61
commit ce3f3dc639

View file

@ -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) {