mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
[LTR] Implement Arwen, Mortal Queen
This commit is contained in:
parent
d688bcb54a
commit
83cd76d41d
2 changed files with 69 additions and 0 deletions
68
Mage.Sets/src/mage/cards/a/ArwenMortalQueen.java
Normal file
68
Mage.Sets/src/mage/cards/a/ArwenMortalQueen.java
Normal file
|
@ -0,0 +1,68 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ArwenMortalQueen extends CardImpl {
|
||||
|
||||
public ArwenMortalQueen(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}{W}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.ELF);
|
||||
this.subtype.add(SubType.NOBLE);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Arwen, Mortal Queen enters the battlefield with an indestructible counter on it.
|
||||
this.addAbility(new EntersBattlefieldAbility(
|
||||
new AddCountersSourceEffect(CounterType.INDESTRUCTIBLE.createInstance(1)),
|
||||
"with an indestructible counter on it"
|
||||
));
|
||||
|
||||
// {1}, Remove an indestructible counter from Arwen: Another target creature gains indestructible until end of turn. Put a +1/+1 counter and a lifelink counter on that creature and a +1/+1 counter and a lifelink counter on Arwen.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new GainAbilityTargetEffect(IndestructibleAbility.getInstance()),
|
||||
new RemoveCountersSourceCost(CounterType.INDESTRUCTIBLE.createInstance())
|
||||
);
|
||||
ability.addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance())
|
||||
.setText("Put a +1/+1 counter"));
|
||||
ability.addEffect(new AddCountersTargetEffect(CounterType.LIFELINK.createInstance())
|
||||
.setText("and a lifelink counter on that creature"));
|
||||
ability.addEffect(new AddCountersSourceEffect(CounterType.P1P1.createInstance())
|
||||
.setText("and a +1/+1 counter"));
|
||||
ability.addEffect(new AddCountersSourceEffect(CounterType.LIFELINK.createInstance())
|
||||
.setText("and a lifelink counter on {this}"));
|
||||
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_ANOTHER_TARGET_CREATURE));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private ArwenMortalQueen(final ArwenMortalQueen card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ArwenMortalQueen copy() {
|
||||
return new ArwenMortalQueen(this);
|
||||
}
|
||||
}
|
|
@ -22,6 +22,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Aragorn, the Uniter", 192, Rarity.MYTHIC, mage.cards.a.AragornTheUniter.class));
|
||||
cards.add(new SetCardInfo("Arwen Undomiel", 194, Rarity.UNCOMMON, mage.cards.a.ArwenUndomiel.class));
|
||||
cards.add(new SetCardInfo("Arwen's Gift", 39, Rarity.COMMON, mage.cards.a.ArwensGift.class));
|
||||
cards.add(new SetCardInfo("Arwen, Mortal Queen", 193, Rarity.MYTHIC, mage.cards.a.ArwenMortalQueen.class));
|
||||
cards.add(new SetCardInfo("Assault on Osgiliath", 285, Rarity.RARE, mage.cards.a.AssaultOnOsgiliath.class));
|
||||
cards.add(new SetCardInfo("Bag End Porter", 153, Rarity.COMMON, mage.cards.b.BagEndPorter.class));
|
||||
cards.add(new SetCardInfo("Barad-dur", 253, Rarity.RARE, mage.cards.b.BaradDur.class));
|
||||
|
|
Loading…
Reference in a new issue