mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
[LTR] Implement Anduril, Flame of the West (#10484)
* [LTR] Implement Anduril, Flame of the West * [LTR] Implement Anduril, Flame of the West * [LTR] Implement Anduril, Flame of the West * [LTR] Implement Anduril, Flame of the West
This commit is contained in:
parent
dc4dde176e
commit
5c390b919d
2 changed files with 73 additions and 0 deletions
72
Mage.Sets/src/mage/cards/a/AndurilFlameOfTheWest.java
Normal file
72
Mage.Sets/src/mage/cards/a/AndurilFlameOfTheWest.java
Normal file
|
@ -0,0 +1,72 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksAttachedTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.token.SpiritWhiteToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author LePwnerer
|
||||
*/
|
||||
public final class AndurilFlameOfTheWest extends CardImpl {
|
||||
|
||||
public AndurilFlameOfTheWest(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// Equipped creature gets +3/+1
|
||||
this.addAbility(new SimpleStaticAbility(new BoostEquippedEffect(3, 1)));
|
||||
|
||||
// Whenever equipped creature attacks, create two tapped 1/1 white Spirit creature tokens with flying.
|
||||
// If that creature is legendary, instead create two of those tokens that are tapped and attacking.
|
||||
this.addAbility(new AttacksAttachedTriggeredAbility(new AndurilFlameOfTheWestEffect(), AttachmentType.EQUIPMENT, false, SetTargetPointer.PERMANENT));
|
||||
|
||||
// Equip {2}
|
||||
this.addAbility(new EquipAbility(2, false));
|
||||
}
|
||||
|
||||
private AndurilFlameOfTheWest(final AndurilFlameOfTheWest card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AndurilFlameOfTheWest copy() {
|
||||
return new AndurilFlameOfTheWest(this);
|
||||
}
|
||||
}
|
||||
|
||||
class AndurilFlameOfTheWestEffect extends OneShotEffect {
|
||||
|
||||
AndurilFlameOfTheWestEffect() {
|
||||
super(Outcome.PutCreatureInPlay);
|
||||
staticText = "create two tapped 1/1 white Spirit creature tokens with flying. " +
|
||||
"If that creature is legendary, instead create two of those tokens that are tapped and attacking";
|
||||
}
|
||||
|
||||
private AndurilFlameOfTheWestEffect(final AndurilFlameOfTheWestEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent equipped = this.getTargetPointer().getFirstTargetPermanentOrLKI(game, source);
|
||||
return new SpiritWhiteToken().putOntoBattlefield(2, game, source, source.getControllerId(), true, equipped.isLegendary(game));
|
||||
}
|
||||
|
||||
@Override
|
||||
public AndurilFlameOfTheWestEffect copy() {
|
||||
return new AndurilFlameOfTheWestEffect(this);
|
||||
}
|
||||
}
|
|
@ -18,6 +18,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet {
|
|||
this.hasBasicLands = true;
|
||||
this.hasBoosters = false; // temporary
|
||||
|
||||
cards.add(new SetCardInfo("Anduril, Flame of the West", 236, Rarity.MYTHIC, mage.cards.a.AndurilFlameOfTheWest.class));
|
||||
cards.add(new SetCardInfo("Aragorn and Arwen, Wed", 287, Rarity.MYTHIC, mage.cards.a.AragornAndArwenWed.class));
|
||||
cards.add(new SetCardInfo("Aragorn, Company Leader", 191, Rarity.RARE, mage.cards.a.AragornCompanyLeader.class));
|
||||
cards.add(new SetCardInfo("Aragorn, the Uniter", 192, Rarity.MYTHIC, mage.cards.a.AragornTheUniter.class));
|
||||
|
|
Loading…
Reference in a new issue