mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
[LTR] Implement Eomer of the Riddlermark
This commit is contained in:
parent
27406360e8
commit
25aef52126
2 changed files with 60 additions and 0 deletions
59
Mage.Sets/src/mage/cards/e/EomerOfTheRiddermark.java
Normal file
59
Mage.Sets/src/mage/cards/e/EomerOfTheRiddermark.java
Normal file
|
@ -0,0 +1,59 @@
|
|||
package mage.cards.e;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.condition.common.ControlsCreatureGreatestPowerCondition;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.hint.ConditionHint;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.game.permanent.token.HumanSoldierToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class EomerOfTheRiddermark extends CardImpl {
|
||||
|
||||
private static final Hint hint = new ConditionHint(
|
||||
ControlsCreatureGreatestPowerCondition.instance,
|
||||
"You control a creature with the greatest power"
|
||||
);
|
||||
|
||||
public EomerOfTheRiddermark(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.KNIGHT);
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// Whenever Eomer of the Riddermark attacks, if you control a creature with the greatest power among creatures on the battlefield, create a 1/1 white Human Soldier creature token.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
new AttacksTriggeredAbility(new CreateTokenEffect(new HumanSoldierToken())),
|
||||
ControlsCreatureGreatestPowerCondition.instance, "Whenever {this} attacks, " +
|
||||
"if you control a creature with the greatest power among creatures on the battlefield, " +
|
||||
"create a 1/1 white Human Soldier creature token."
|
||||
).addHint(hint));
|
||||
}
|
||||
|
||||
private EomerOfTheRiddermark(final EomerOfTheRiddermark card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EomerOfTheRiddermark copy() {
|
||||
return new EomerOfTheRiddermark(this);
|
||||
}
|
||||
}
|
|
@ -60,6 +60,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Elvish Mariner", 283, Rarity.RARE, mage.cards.e.ElvishMariner.class));
|
||||
cards.add(new SetCardInfo("Enraged Huorn", 162, Rarity.COMMON, mage.cards.e.EnragedHuorn.class));
|
||||
cards.add(new SetCardInfo("Ent-Draught Basin", 238, Rarity.UNCOMMON, mage.cards.e.EntDraughtBasin.class));
|
||||
cards.add(new SetCardInfo("Eomer of the Riddermark", 121, Rarity.UNCOMMON, mage.cards.e.EomerOfTheRiddermark.class));
|
||||
cards.add(new SetCardInfo("Eowyn, Fearless Knight", 201, Rarity.RARE, mage.cards.e.EowynFearlessKnight.class));
|
||||
cards.add(new SetCardInfo("Erebor Flamesmith", 122, Rarity.COMMON, mage.cards.e.EreborFlamesmith.class));
|
||||
cards.add(new SetCardInfo("Erkenbrand, Lord of Westfold", 123, Rarity.UNCOMMON, mage.cards.e.ErkenbrandLordOfWestfold.class));
|
||||
|
|
Loading…
Reference in a new issue