mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
- Fixed #7534
This commit is contained in:
parent
f80de1d868
commit
7f30e83d70
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue