[DOM] Fixed not working Fall into Oblivion

This commit is contained in:
Oleg Agafonov 2018-03-23 11:10:52 +04:00
parent c535b81bff
commit 0eeada3264

View file

@ -15,7 +15,6 @@ import java.util.UUID;
public class FallIntoOblivion extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonlegendary creature");
static {
filter.add(Predicates.not(new SupertypePredicate(SuperType.LEGENDARY)));
}
@ -23,9 +22,9 @@ public class FallIntoOblivion extends CardImpl {
public FallIntoOblivion(UUID ownerId, CardSetInfo cardSetInfo){
super(ownerId, cardSetInfo, new CardType[] { CardType.INSTANT }, "{1}{B}");
//destroy target non legendary creature
spellAbility.addEffect(new DestroyTargetEffect());
spellAbility.addTarget(new TargetCreaturePermanent(filter));
// Destroy target nonlegendary creature.
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
}
public FallIntoOblivion(final FallIntoOblivion fallIntoOblivion){
@ -35,4 +34,4 @@ public class FallIntoOblivion extends CardImpl {
public FallIntoOblivion copy(){
return new FallIntoOblivion(this);
}
}
}