* Holy Light - Fixed not working -1/-1 unboost effect.

This commit is contained in:
LevelX2 2015-12-13 18:17:04 +01:00
parent 97c5701518
commit 4d0e3b3a70

View file

@ -29,13 +29,11 @@ package mage.sets.thedark;
import java.util.UUID;
import mage.ObjectColor;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.BoostAllEffect;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.ColorPredicate;
@ -45,20 +43,20 @@ import mage.filter.predicate.mageobject.ColorPredicate;
* @author daagar
*/
public class HolyLight extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Nonwhite creatures");
static {
filter.add(Predicates.not(new ColorPredicate(ObjectColor.WHITE)));
}
public HolyLight(UUID ownerId) {
super(ownerId, 83, "Holy Light", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{2}{W}");
this.expansionSetCode = "DRK";
// Nonwhite creatures get -1/-1 until end of turn.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(-1, -1, Duration.EndOfTurn, filter, false)));
// Non white creatures get -1/-1 until end of turn.
getSpellAbility().addEffect(new BoostAllEffect(-1, -1, Duration.EndOfTurn, filter, false));
}
public HolyLight(final HolyLight card) {