Update AngelicVoices.java

This commit is contained in:
Evan Kranzler 2019-01-20 11:02:50 -05:00
parent 4f0a371152
commit 5fd056f5a7

View file

@ -1,8 +1,8 @@
package mage.cards.a;
import java.util.UUID;
import mage.ObjectColor;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.Condition;
import mage.abilities.condition.InvertCondition;
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
import mage.abilities.decorator.ConditionalContinuousEffect;
@ -12,7 +12,6 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.TargetController;
import mage.constants.Zone;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.Predicates;
@ -20,8 +19,9 @@ import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.filter.predicate.mageobject.ColorPredicate;
import mage.filter.predicate.permanent.ControllerPredicate;
import java.util.UUID;
/**
*
* @author TheElk801
*/
public final class AngelicVoices extends CardImpl {
@ -38,15 +38,15 @@ public final class AngelicVoices extends CardImpl {
filter.add(new ControllerPredicate(TargetController.YOU));
}
private static final Condition condition = new InvertCondition(new PermanentsOnTheBattlefieldCondition(filter));
public AngelicVoices(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}{W}");
// Creatures you control get +1/+1 as long as you control no nonartifact, nonwhite creatures.
this.addAbility(new SimpleStaticAbility(
Zone.BATTLEFIELD,
new ConditionalContinuousEffect(
new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield),
new InvertCondition(new PermanentsOnTheBattlefieldCondition(filter)),
new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield), condition,
"Creatures you control get +1/+1 as long as you control no nonartifact, nonwhite creatures."
)
));