mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Death Rattle - Fixed that wrongly also green creatures could be targeted and were destroyed.
This commit is contained in:
parent
cdd147ee61
commit
ce3f3dc639
1 changed files with 5 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue