mirror of
https://github.com/correl/mage.git
synced 2024-12-27 11:07:39 +00:00
[LTR] Implement Rally at the Hornburg
This commit is contained in:
parent
3e478133cb
commit
5ce7a0ff50
2 changed files with 43 additions and 0 deletions
42
Mage.Sets/src/mage/cards/r/RallyAtTheHornburg.java
Normal file
42
Mage.Sets/src/mage/cards/r/RallyAtTheHornburg.java
Normal file
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
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 mage.filter.common.FilterControlledPermanent;
|
||||
import mage.game.permanent.token.HumanSoldierToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RallyAtTheHornburg extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledPermanent(SubType.HUMAN, "Humans");
|
||||
|
||||
public RallyAtTheHornburg(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}");
|
||||
|
||||
// Create two 1/1 white Human Soldier creature tokens. Humans you control gain haste until end of turn.
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new HumanSoldierToken(), 2));
|
||||
this.getSpellAbility().addEffect(new GainAbilityControlledEffect(
|
||||
HasteAbility.getInstance(), Duration.EndOfTurn, filter
|
||||
));
|
||||
}
|
||||
|
||||
private RallyAtTheHornburg(final RallyAtTheHornburg card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RallyAtTheHornburg copy() {
|
||||
return new RallyAtTheHornburg(this);
|
||||
}
|
||||
}
|
|
@ -95,6 +95,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Prince Imrahil the Fair", 219, Rarity.UNCOMMON, mage.cards.p.PrinceImrahilTheFair.class));
|
||||
cards.add(new SetCardInfo("Protector of Gondor", 25, Rarity.COMMON, mage.cards.p.ProtectorOfGondor.class));
|
||||
cards.add(new SetCardInfo("Quickbeam, Upstart Ent", 183, Rarity.UNCOMMON, mage.cards.q.QuickbeamUpstartEnt.class));
|
||||
cards.add(new SetCardInfo("Rally at the Hornburg", 142, Rarity.COMMON, mage.cards.r.RallyAtTheHornburg.class));
|
||||
cards.add(new SetCardInfo("Reprieve", 26, Rarity.UNCOMMON, mage.cards.r.Reprieve.class));
|
||||
cards.add(new SetCardInfo("Ringsight", 220, Rarity.UNCOMMON, mage.cards.r.Ringsight.class));
|
||||
cards.add(new SetCardInfo("Rising of the Day", 145, Rarity.UNCOMMON, mage.cards.r.RisingOfTheDay.class));
|
||||
|
|
Loading…
Reference in a new issue