[DMU] Yavimaya Iconoclast (#9399)

* YavimayaIconoclast implemented

* YavimayaIconoclast small fixes

* clean imports
This commit is contained in:
Edoardo Mortara 2022-08-22 16:19:15 +02:00 committed by GitHub
parent 2a9ef92905
commit 8cfa3e5ed2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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