mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Implemented Obscuring Haze
This commit is contained in:
parent
381de68563
commit
87d322c8e9
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/o/ObscuringHaze.java
Normal file
43
Mage.Sets/src/mage/cards/o/ObscuringHaze.java
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
package mage.cards.o;
|
||||||
|
|
||||||
|
import mage.abilities.condition.common.ControlACommanderCondition;
|
||||||
|
import mage.abilities.costs.AlternativeCostSourceAbility;
|
||||||
|
import mage.abilities.effects.common.PreventAllDamageByAllObjectsEffect;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Duration;
|
||||||
|
import mage.filter.FilterObject;
|
||||||
|
import mage.filter.common.FilterOpponentsCreaturePermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class ObscuringHaze extends CardImpl {
|
||||||
|
|
||||||
|
private static final FilterObject filter
|
||||||
|
= new FilterOpponentsCreaturePermanent("creatures your opponents control");
|
||||||
|
|
||||||
|
public ObscuringHaze(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}");
|
||||||
|
|
||||||
|
// If you control a commander, you may cast this spell without paying its mana cost.
|
||||||
|
this.addAbility(new AlternativeCostSourceAbility(null, ControlACommanderCondition.instance));
|
||||||
|
|
||||||
|
// Prevent all damage that would be dealt this turn by creatures your opponents control.
|
||||||
|
this.getSpellAbility().addEffect(new PreventAllDamageByAllObjectsEffect(
|
||||||
|
filter, Duration.EndOfTurn, false
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
private ObscuringHaze(final ObscuringHaze card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ObscuringHaze copy() {
|
||||||
|
return new ObscuringHaze(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -33,6 +33,7 @@ public final class Commander2020Edition extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Lifecrafter's Bestiary", 244, Rarity.RARE, mage.cards.l.LifecraftersBestiary.class));
|
cards.add(new SetCardInfo("Lifecrafter's Bestiary", 244, Rarity.RARE, mage.cards.l.LifecraftersBestiary.class));
|
||||||
cards.add(new SetCardInfo("Masked Admirers", 163, Rarity.RARE, mage.cards.m.MaskedAdmirers.class));
|
cards.add(new SetCardInfo("Masked Admirers", 163, Rarity.RARE, mage.cards.m.MaskedAdmirers.class));
|
||||||
cards.add(new SetCardInfo("Netherborn Altar", 45, Rarity.RARE, mage.cards.n.NetherbornAltar.class));
|
cards.add(new SetCardInfo("Netherborn Altar", 45, Rarity.RARE, mage.cards.n.NetherbornAltar.class));
|
||||||
|
cards.add(new SetCardInfo("Obscuring Haze", 61, Rarity.RARE, mage.cards.o.ObscuringHaze.class));
|
||||||
cards.add(new SetCardInfo("Otrimi, the Ever-Playful", 12, Rarity.COMMON, mage.cards.o.OtrimiTheEverPlayful.class));
|
cards.add(new SetCardInfo("Otrimi, the Ever-Playful", 12, Rarity.COMMON, mage.cards.o.OtrimiTheEverPlayful.class));
|
||||||
cards.add(new SetCardInfo("Path of Ancestry", 298, Rarity.COMMON, mage.cards.p.PathOfAncestry.class));
|
cards.add(new SetCardInfo("Path of Ancestry", 298, Rarity.COMMON, mage.cards.p.PathOfAncestry.class));
|
||||||
cards.add(new SetCardInfo("Rashmi, Eternities Crafter", 229, Rarity.RARE, mage.cards.r.RashmiEternitiesCrafter.class));
|
cards.add(new SetCardInfo("Rashmi, Eternities Crafter", 229, Rarity.RARE, mage.cards.r.RashmiEternitiesCrafter.class));
|
||||||
|
|
Loading…
Reference in a new issue