mirror of
https://github.com/correl/mage.git
synced 2025-02-16 15:54:35 +00:00
[MOC] Implement Herald of Hoofbeats
This commit is contained in:
parent
b3245e0238
commit
402cea2697
3 changed files with 50 additions and 1 deletions
48
Mage.Sets/src/mage/cards/h/HeraldOfHoofbeats.java
Normal file
48
Mage.Sets/src/mage/cards/h/HeraldOfHoofbeats.java
Normal file
|
@ -0,0 +1,48 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.keyword.HorsemanshipAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HeraldOfHoofbeats extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterPermanent(SubType.KNIGHT, "Knights");
|
||||
|
||||
public HeraldOfHoofbeats(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.KNIGHT);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Horsemanship
|
||||
this.addAbility(HorsemanshipAbility.getInstance());
|
||||
|
||||
// Other Knights you control have horsemanship.
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
|
||||
HorsemanshipAbility.getInstance(), Duration.WhileOnBattlefield, filter, true
|
||||
)));
|
||||
}
|
||||
|
||||
private HeraldOfHoofbeats(final HeraldOfHoofbeats card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HeraldOfHoofbeats copy() {
|
||||
return new HeraldOfHoofbeats(this);
|
||||
}
|
||||
}
|
|
@ -130,6 +130,7 @@ public final class MarchOfTheMachineCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Heaven // Earth", 328, Rarity.RARE, mage.cards.h.HeavenEarth.class));
|
||||
cards.add(new SetCardInfo("Hedron Archive", 359, Rarity.UNCOMMON, mage.cards.h.HedronArchive.class));
|
||||
cards.add(new SetCardInfo("Hellkite Igniter", 284, Rarity.RARE, mage.cards.h.HellkiteIgniter.class));
|
||||
cards.add(new SetCardInfo("Herald of Hoofbeats", 22, Rarity.RARE, mage.cards.h.HeraldOfHoofbeats.class));
|
||||
cards.add(new SetCardInfo("Herald's Horn", 360, Rarity.UNCOMMON, mage.cards.h.HeraldsHorn.class));
|
||||
cards.add(new SetCardInfo("Hero of Bladehold", 188, Rarity.MYTHIC, mage.cards.h.HeroOfBladehold.class));
|
||||
cards.add(new SetCardInfo("High Sentinels of Arashin", 189, Rarity.RARE, mage.cards.h.HighSentinelsOfArashin.class));
|
||||
|
|
|
@ -31,7 +31,7 @@ public class HorsemanshipAbility extends EvasionAbility implements MageSingleton
|
|||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Horsemanship <i>(This creature can't be blocked except by creatures with horsemanship.)</i>";
|
||||
return "horsemanship <i>(This creature can't be blocked except by creatures with horsemanship.)</i>";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue