diff --git a/Mage.Sets/src/mage/cards/y/YavimayaIconoclast.java b/Mage.Sets/src/mage/cards/y/YavimayaIconoclast.java new file mode 100644 index 0000000000..527ce86658 --- /dev/null +++ b/Mage.Sets/src/mage/cards/y/YavimayaIconoclast.java @@ -0,0 +1,54 @@ +package mage.cards.y; + +import mage.MageInt; +import mage.abilities.TriggeredAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.condition.common.KickedCondition; +import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility; +import mage.abilities.effects.common.continuous.BoostSourceEffect; +import mage.abilities.effects.common.continuous.GainAbilitySourceEffect; +import mage.abilities.keyword.HasteAbility; +import mage.abilities.keyword.KickerAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author freaisdead + */ +public final class YavimayaIconoclast extends CardImpl { + + public YavimayaIconoclast(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}"); + + this.subtype.add(SubType.ELF); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // Kicker {R} + this.addAbility(new KickerAbility("{R}")); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // When Yavimaya Iconoclast enters the battlefield, if it was kicked, it gets +1/+1 and gains haste until end of turn. + TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new BoostSourceEffect(1, 1, Duration.EndOfTurn)); + ability.addEffect(new GainAbilitySourceEffect(HasteAbility.getInstance(), Duration.EndOfTurn)); + this.addAbility(new ConditionalInterveningIfTriggeredAbility(ability, KickedCondition.ONCE, + "When {this} enters the battlefield, if it was kicked, it gets +1/+1 and gains haste until end of turn.")); + } + + private YavimayaIconoclast(final YavimayaIconoclast card) { + super(card); + } + + @Override + public YavimayaIconoclast copy() { + return new YavimayaIconoclast(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DominariaUnited.java b/Mage.Sets/src/mage/sets/DominariaUnited.java index d3cb562ff1..ecd5a164ae 100644 --- a/Mage.Sets/src/mage/sets/DominariaUnited.java +++ b/Mage.Sets/src/mage/sets/DominariaUnited.java @@ -89,6 +89,7 @@ public final class DominariaUnited extends ExpansionSet { cards.add(new SetCardInfo("Viashino Branchrider", 150, Rarity.COMMON, mage.cards.v.ViashinoBranchrider.class)); cards.add(new SetCardInfo("Vineshaper Prodigy", 187, Rarity.COMMON, mage.cards.v.VineshaperProdigy.class)); cards.add(new SetCardInfo("Yavimaya Coast", 261, Rarity.RARE, mage.cards.y.YavimayaCoast.class)); + cards.add(new SetCardInfo("Yavimaya Iconoclast", 190, Rarity.UNCOMMON, mage.cards.y.YavimayaIconoclast.class)); } // @Override