[ZNR] Implemented Might of Murasa

This commit is contained in:
Evan Kranzler 2020-09-01 20:02:42 -04:00
parent e2e711a463
commit 403b317b5b
2 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,68 @@
package mage.cards.m;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.condition.common.KickedCondition;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.keyword.KickerAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Outcome;
import mage.game.Game;
import mage.target.common.TargetCreaturePermanent;
/**
* @author TheElk801
*/
public final class MightOfMurasa extends CardImpl {
public MightOfMurasa(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}");
// Kicker {2}{G}
this.addAbility(new KickerAbility(new ManaCostsImpl<>("{2}{G}")));
// Target creature gets +3/+3 until end of turn. If this spell was kicked, that creature gets +5/+5 until end of turn instead.
this.getSpellAbility().addEffect(new MightOfMurasaEffect());
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
private MightOfMurasa(final MightOfMurasa card) {
super(card);
}
@Override
public MightOfMurasa copy() {
return new MightOfMurasa(this);
}
}
class MightOfMurasaEffect extends OneShotEffect {
MightOfMurasaEffect() {
super(Outcome.Benefit);
staticText = "Target creature gets +3/+3 until end of turn. " +
"If this spell was kicked, that creature gets +5/+5 until end of turn instead.";
}
private MightOfMurasaEffect(final MightOfMurasaEffect effect) {
super(effect);
}
@Override
public MightOfMurasaEffect copy() {
return new MightOfMurasaEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
int i = KickedCondition.instance.apply(game, source) ? 5 : 3;
game.addEffect(new BoostTargetEffect(i, i, Duration.EndOfTurn), source);
return true;
}
}

View file

@ -34,6 +34,7 @@ public final class ZendikarRising extends ExpansionSet {
cards.add(new SetCardInfo("Jace, Mirror Mage", 63, Rarity.MYTHIC, mage.cards.j.JaceMirrorMage.class)); cards.add(new SetCardInfo("Jace, Mirror Mage", 63, Rarity.MYTHIC, mage.cards.j.JaceMirrorMage.class));
cards.add(new SetCardInfo("Legion Angel", 318, Rarity.RARE, mage.cards.l.LegionAngel.class)); cards.add(new SetCardInfo("Legion Angel", 318, Rarity.RARE, mage.cards.l.LegionAngel.class));
cards.add(new SetCardInfo("Lotus Cobra", 193, Rarity.RARE, mage.cards.l.LotusCobra.class)); cards.add(new SetCardInfo("Lotus Cobra", 193, Rarity.RARE, mage.cards.l.LotusCobra.class));
cards.add(new SetCardInfo("Might of Murasa", 194, Rarity.COMMON, mage.cards.m.MightOfMurasa.class));
cards.add(new SetCardInfo("Mountain", 275, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Mountain", 275, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Murasa Rootgrazer", 229, Rarity.UNCOMMON, mage.cards.m.MurasaRootgrazer.class)); cards.add(new SetCardInfo("Murasa Rootgrazer", 229, Rarity.UNCOMMON, mage.cards.m.MurasaRootgrazer.class));
cards.add(new SetCardInfo("Nahiri, Heir of the Ancients", 230, Rarity.MYTHIC, mage.cards.n.NahiriHeirOfTheAncients.class)); cards.add(new SetCardInfo("Nahiri, Heir of the Ancients", 230, Rarity.MYTHIC, mage.cards.n.NahiriHeirOfTheAncients.class));