Fixed possible npe, added some tests.

This commit is contained in:
LevelX2 2015-06-18 22:42:13 +02:00
parent 8caa3087bd
commit 42cf7f1f4e
5 changed files with 117 additions and 6 deletions

View file

@ -51,6 +51,7 @@ public class BlackSunsZenith extends CardImpl {
super(ownerId, 39, "Black Sun's Zenith", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{X}{B}{B}");
this.expansionSetCode = "MBS";
// Put X -1/-1 counters on each creature. Shuffle Black Sun's Zenith into its owner's library.
this.getSpellAbility().addEffect(new BlackSunsZenithEffect());
this.getSpellAbility().addEffect(ShuffleSpellEffect.getInstance());
}

View file

@ -47,6 +47,7 @@ public class BlueSunsZenith extends CardImpl {
super(ownerId, 20, "Blue Sun's Zenith", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{X}{U}{U}{U}");
this.expansionSetCode = "MBS";
// Target player draws X cards. Shuffle Blue Sun's Zenith into its owner's library.
this.getSpellAbility().addEffect(new DrawCardTargetEffect(new ManacostVariableValue()));
this.getSpellAbility().addEffect(ShuffleSpellEffect.getInstance());
this.getSpellAbility().addTarget(new TargetPlayer());