This commit is contained in:
jeffwadsworth 2021-02-09 14:30:51 -06:00
parent f80de1d868
commit 7f30e83d70

View file

@ -2,23 +2,22 @@ package mage.cards.o;
import mage.abilities.condition.common.ControlACommanderCondition; import mage.abilities.condition.common.ControlACommanderCondition;
import mage.abilities.costs.AlternativeCostSourceAbility; import mage.abilities.costs.AlternativeCostSourceAbility;
import mage.abilities.effects.common.PreventAllDamageByAllObjectsEffect;
import mage.abilities.hint.common.ControlACommanderHint; import mage.abilities.hint.common.ControlACommanderHint;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.Duration; import mage.constants.Duration;
import mage.filter.FilterObject;
import mage.filter.common.FilterOpponentsCreaturePermanent; import mage.filter.common.FilterOpponentsCreaturePermanent;
import java.util.UUID; import java.util.UUID;
import mage.abilities.effects.common.PreventAllDamageByAllPermanentsEffect;
/** /**
* @author TheElk801 * @author TheElk801
*/ */
public final class ObscuringHaze extends CardImpl { public final class ObscuringHaze extends CardImpl {
private static final FilterObject filter private static final FilterOpponentsCreaturePermanent filter
= new FilterOpponentsCreaturePermanent("creatures your opponents control"); = new FilterOpponentsCreaturePermanent("creatures your opponents control");
public ObscuringHaze(UUID ownerId, CardSetInfo setInfo) { public ObscuringHaze(UUID ownerId, CardSetInfo setInfo) {
@ -30,7 +29,7 @@ public final class ObscuringHaze extends CardImpl {
); );
// Prevent all damage that would be dealt this turn by creatures your opponents control. // Prevent all damage that would be dealt this turn by creatures your opponents control.
this.getSpellAbility().addEffect(new PreventAllDamageByAllObjectsEffect( this.getSpellAbility().addEffect(new PreventAllDamageByAllPermanentsEffect(
filter, Duration.EndOfTurn, false filter, Duration.EndOfTurn, false
)); ));
} }