mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implemented Undercity's Embrace
This commit is contained in:
parent
6dbc6e193c
commit
73e24a5cb6
2 changed files with 43 additions and 0 deletions
42
Mage.Sets/src/mage/cards/u/UndercitysEmbrace.java
Normal file
42
Mage.Sets/src/mage/cards/u/UndercitysEmbrace.java
Normal file
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.u;
|
||||
|
||||
import mage.abilities.condition.common.FerociousCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.SacrificeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetOpponent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class UndercitysEmbrace extends CardImpl {
|
||||
|
||||
public UndercitysEmbrace(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{B}");
|
||||
|
||||
// Target opponent sacrifices a creature. If you control a creature with power 4 or greater, your gain 4 life.
|
||||
this.getSpellAbility().addEffect(new SacrificeEffect(
|
||||
StaticFilters.FILTER_PERMANENT_A_CREATURE, 1, "target player"
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetOpponent());
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new GainLifeEffect(4), FerociousCondition.instance,
|
||||
"If you control a creature with power 4 or greater, your gain 4 life."
|
||||
));
|
||||
}
|
||||
|
||||
private UndercitysEmbrace(final UndercitysEmbrace card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UndercitysEmbrace copy() {
|
||||
return new UndercitysEmbrace(this);
|
||||
}
|
||||
}
|
|
@ -285,6 +285,7 @@ public final class RavnicaAllegiance extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Twilight Panther", 28, Rarity.COMMON, mage.cards.t.TwilightPanther.class));
|
||||
cards.add(new SetCardInfo("Unbreakable Formation", 29, Rarity.RARE, mage.cards.u.UnbreakableFormation.class));
|
||||
cards.add(new SetCardInfo("Undercity Scavenger", 88, Rarity.COMMON, mage.cards.u.UndercityScavenger.class));
|
||||
cards.add(new SetCardInfo("Undercity's Embrace", 89, Rarity.COMMON, mage.cards.u.UndercitysEmbrace.class));
|
||||
cards.add(new SetCardInfo("Verity Circle", 58, Rarity.RARE, mage.cards.v.VerityCircle.class));
|
||||
cards.add(new SetCardInfo("Vindictive Vampire", 90, Rarity.UNCOMMON, mage.cards.v.VindictiveVampire.class));
|
||||
cards.add(new SetCardInfo("Vizkopa Vampire", 220, Rarity.COMMON, mage.cards.v.VizkopaVampire.class));
|
||||
|
|
Loading…
Reference in a new issue