From 891cf38a3b63d1731b311279fd863860f980c9a5 Mon Sep 17 00:00:00 2001 From: Archer262 Date: Sun, 2 Jul 2017 00:19:17 -0400 Subject: [PATCH] Act Of Heroism --- Mage.Sets/src/mage/cards/a/ActOfHeroism.java | 55 +++++++++++++++++++ .../src/mage/sets/HourOfDevastation.java | 1 + 2 files changed, 56 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/ActOfHeroism.java diff --git a/Mage.Sets/src/mage/cards/a/ActOfHeroism.java b/Mage.Sets/src/mage/cards/a/ActOfHeroism.java new file mode 100644 index 0000000000..d69a6fe12b --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/ActOfHeroism.java @@ -0,0 +1,55 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package mage.cards.a; + +import mage.abilities.effects.Effect; +import mage.abilities.effects.common.UntapTargetEffect; +import mage.abilities.effects.common.combat.CanBlockAdditionalCreatureEffect; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +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; +import mage.abilities.Ability; + +/** + * + * @author Archer262 + */ +public class ActOfHeroism extends CardImpl { + + public ActOfHeroism(UUID ownerId, CardSetInfo setInfo) { + super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{G}"); + + // Untap target creature. + Effect effect = new UntapTargetEffect(); + effect.setText("Untap target creature"); + this.getSpellAbility().addEffect(effect); + + // It gets +2/+2 and can block an additional creature this turn. + effect = new BoostTargetEffect(2, 2, Duration.EndOfTurn); + effect.setText("It gets +2/+2"); + this.getSpellAbility().addEffect(effect); + effect = new GainAbilityTargetEffect((Ability) new CanBlockAdditionalCreatureEffect(), Duration.EndOfTurn); + effect.setText("and can block an additional creature this turn."); + this.getSpellAbility().addEffect(effect); + + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + } + + public ActOfHeroism(final ActOfHeroism card) { + super(card); + } + + @Override + public ActOfHeroism copy() { + return new ActOfHeroism(this); + } +} diff --git a/Mage.Sets/src/mage/sets/HourOfDevastation.java b/Mage.Sets/src/mage/sets/HourOfDevastation.java index d8a5781d47..4bd46d3675 100644 --- a/Mage.Sets/src/mage/sets/HourOfDevastation.java +++ b/Mage.Sets/src/mage/sets/HourOfDevastation.java @@ -66,6 +66,7 @@ public class HourOfDevastation extends ExpansionSet { cards.add(new SetCardInfo("Abrade", 83, Rarity.UNCOMMON, mage.cards.a.Abrade.class)); cards.add(new SetCardInfo("Accursed Horde", 56, Rarity.UNCOMMON, mage.cards.a.AccursedHorde.class)); + cards.add(new SetCardInfo("Act of Heroism", 1, Rarity.COMMON, mage.cards.a.ActOfHeroism.class)); cards.add(new SetCardInfo("Adorned Pouncer", 2, Rarity.RARE, mage.cards.a.AdornedPouncer.class)); cards.add(new SetCardInfo("Angel of Condemnation", 3, Rarity.RARE, mage.cards.a.AngelOfCondemnation.class)); cards.add(new SetCardInfo("Angel of the God-Pharaoh", 4, Rarity.UNCOMMON, mage.cards.a.AngelOfTheGodPharaoh.class));