mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
Implemented Umezawa's Charm
This commit is contained in:
parent
fd02dfc8d6
commit
610d668a88
2 changed files with 45 additions and 0 deletions
44
Mage.Sets/src/mage/cards/u/UmezawasCharm.java
Normal file
44
Mage.Sets/src/mage/cards/u/UmezawasCharm.java
Normal file
|
@ -0,0 +1,44 @@
|
|||
package mage.cards.u;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class UmezawasCharm extends CardImpl {
|
||||
|
||||
public UmezawasCharm(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}");
|
||||
|
||||
// Choose one—
|
||||
// • Target creature gets +2/+2 until end of turn.
|
||||
this.getSpellAbility().addEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// • Target creature gets -1/-1 until end of turn.
|
||||
Mode mode = new Mode(new BoostTargetEffect(-1, -1, Duration.EndOfTurn));
|
||||
mode.addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addMode(mode);
|
||||
|
||||
// • You gain 2 life.
|
||||
this.getSpellAbility().addMode(new Mode(new GainLifeEffect(2)));
|
||||
}
|
||||
|
||||
private UmezawasCharm(final UmezawasCharm card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UmezawasCharm copy() {
|
||||
return new UmezawasCharm(this);
|
||||
}
|
||||
}
|
|
@ -91,6 +91,7 @@ public final class ModernHorizons extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Sunbaked Canyon", 247, Rarity.RARE, mage.cards.s.SunbakedCanyon.class));
|
||||
cards.add(new SetCardInfo("Tempered Sliver", 183, Rarity.UNCOMMON, mage.cards.t.TemperedSliver.class));
|
||||
cards.add(new SetCardInfo("The First Sliver", 200, Rarity.MYTHIC, mage.cards.t.TheFirstSliver.class));
|
||||
cards.add(new SetCardInfo("Umezawa's Charm", 111, Rarity.COMMON, mage.cards.u.UmezawasCharm.class));
|
||||
cards.add(new SetCardInfo("Undead Augur", 112, Rarity.UNCOMMON, mage.cards.u.UndeadAugur.class));
|
||||
cards.add(new SetCardInfo("Urza, Lord High Artificer", 75, Rarity.MYTHIC, mage.cards.u.UrzaLordHighArtificer.class));
|
||||
cards.add(new SetCardInfo("Venomous Changeling", 114, Rarity.COMMON, mage.cards.v.VenomousChangeling.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue