Implemented Unleash Fury

This commit is contained in:
Evan Kranzler 2020-06-15 20:29:53 -04:00
parent 83b614a6eb
commit 00c01408f1
3 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,67 @@
package mage.cards.u;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
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.constants.Outcome;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class UnleashFury extends CardImpl {
public UnleashFury(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}");
// Double the power of target creature until end of turn.
this.getSpellAbility().addEffect(new UnleashFuryEffect());
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
private UnleashFury(final UnleashFury card) {
super(card);
}
@Override
public UnleashFury copy() {
return new UnleashFury(this);
}
}
class UnleashFuryEffect extends OneShotEffect {
UnleashFuryEffect() {
super(Outcome.Benefit);
staticText = "double the power of target creature until end of turn";
}
private UnleashFuryEffect(final UnleashFuryEffect effect) {
super(effect);
}
@Override
public UnleashFuryEffect copy() {
return new UnleashFuryEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getFirstTarget());
if (permanent == null) {
return false;
}
game.addEffect(new BoostTargetEffect(
2 * permanent.getPower().getValue(), 0, Duration.EndOfTurn
), source);
return true;
}
}

View file

@ -193,6 +193,7 @@ public final class CoreSet2021 extends ExpansionSet {
cards.add(new SetCardInfo("Traitorous Greed", 166, Rarity.UNCOMMON, mage.cards.t.TraitorousGreed.class));
cards.add(new SetCardInfo("Trufflesnout", 212, Rarity.COMMON, mage.cards.t.Trufflesnout.class));
cards.add(new SetCardInfo("Ugin, the Spirit Dragon", 1, Rarity.MYTHIC, mage.cards.u.UginTheSpiritDragon.class));
cards.add(new SetCardInfo("Unleash Fury", 170, Rarity.UNCOMMON, mage.cards.u.UnleashFury.class));
cards.add(new SetCardInfo("Unsubstantiate", 82, Rarity.UNCOMMON, mage.cards.u.Unsubstantiate.class));
cards.add(new SetCardInfo("Valorous Steed", 42, Rarity.COMMON, mage.cards.v.ValorousSteed.class));
cards.add(new SetCardInfo("Village Rites", 126, Rarity.COMMON, mage.cards.v.VillageRites.class));

View file

@ -37548,6 +37548,7 @@ Subira, Tulzidi Caravanner|Core Set 2021|162|R|{2}{R}|Legendary Creature - Human
Terror of the Peaks|Core Set 2021|164|M|{3}{R}{R}|Creature - Dragon|5|4|Flying$Spells your opponents cast that target Terror of the Peaks cost an additional 3 life to cast.$Whenever another creature enters the battlefield under your control, Terror of the Peaks deals damage equal to that creature's power to any taret.|
Traitorous Greed|Core Set 2021|166|U|{3}{R}|Sorcery|||Gain control of target creature until end of turn. Untap that creature. It gains haste until end of turn. Add two mana of any one color.|
Transmogrify|Core Set 2021|167|R|{3}{R}|Sorcery|||Exile target creature. That creature's controller reveals cards from the top of their library until they reveal a creature card. That player puts that card onto the battlefield, then shuffles the rest into their library.|
Unleash Fury|Core Set 2021|170|U|{1}{R}|Instant|||Double the power of target creature until end of turn.|
Volcanic Geyser|Core Set 2021|171|U|{X}{R}{R}|Instant|||Volcanic Geyser deals X damage to any target.|
Volcanic Salvo|Core Set 2021|172|R|{10}{R}{R}|Sorcery|||This spell costs {X} less to cast, where X is the total power of creatures you control.$Volcanic Salvo deals 6 damage to each of up to two target creatures and/or planeswalkers.|
Azusa, Lost but Seeking|Core Set 2021|173|R|{2}{G}|Legendary Creature - Human Monk|1|2|You may play two additional lands on each of your turns.|