[LTR] Implement Glorfindel, Dauntless Rescuer (#10614)

This commit is contained in:
Susucre 2023-07-14 02:13:09 +02:00 committed by GitHub
parent 5ded3c0822
commit 0aff0cc8ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,61 @@
package mage.cards.g;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.Mode;
import mage.abilities.common.ScryTriggeredAbility;
import mage.abilities.effects.common.combat.CantBeBlockedByMoreThanOneSourceEffect;
import mage.abilities.effects.common.combat.MustBeBlockedByAtLeastOneSourceEffect;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.SuperType;
import java.util.UUID;
/**
*
* @author Susucr
*/
public final class GlorfindelDauntlessRescuer extends CardImpl {
public GlorfindelDauntlessRescuer(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.ELF);
this.subtype.add(SubType.NOBLE);
this.power = new MageInt(3);
this.toughness = new MageInt(2);
// Whenever you scry, choose one and Glorfindel, Dauntless Rescuer gets +1/+1 until end of turn.
// * Glorfindel must be blocked this turn if able.
Ability ability = new ScryTriggeredAbility(
new BoostSourceEffect(1, 1, Duration.EndOfTurn).setText("")
);
ability.addEffect(new MustBeBlockedByAtLeastOneSourceEffect(Duration.EndOfTurn));
// * Glorfindel can't be blocked by more than one creature each combat this turn.
Mode mode = new Mode(
new BoostSourceEffect(1, 1, Duration.EndOfTurn).setText("")
);
mode.addEffect(new CantBeBlockedByMoreThanOneSourceEffect());
ability.addMode(mode);
ability.getModes().setChooseText("choose one and {this} gets +1/+1 until end of turn.");
this.addAbility(ability);
}
private GlorfindelDauntlessRescuer(final GlorfindelDauntlessRescuer card) {
super(card);
}
@Override
public GlorfindelDauntlessRescuer copy() {
return new GlorfindelDauntlessRescuer(this);
}
}

View file

@ -119,6 +119,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet {
cards.add(new SetCardInfo("Gimli, Mournful Avenger", 209, Rarity.RARE, mage.cards.g.GimliMournfulAvenger.class));
cards.add(new SetCardInfo("Glamdring", 239, Rarity.MYTHIC, mage.cards.g.Glamdring.class));
cards.add(new SetCardInfo("Gloin, Dwarf Emissary", 132, Rarity.RARE, mage.cards.g.GloinDwarfEmissary.class));
cards.add(new SetCardInfo("Glorfindel, Dauntless Rescuer", 171, Rarity.UNCOMMON, mage.cards.g.GlorfindelDauntlessRescuer.class));
cards.add(new SetCardInfo("Glorious Gale", 51, Rarity.COMMON, mage.cards.g.GloriousGale.class));
cards.add(new SetCardInfo("Goblin Assailant", 295, Rarity.COMMON, mage.cards.g.GoblinAssailant.class));
cards.add(new SetCardInfo("Goblin Fireleaper", 133, Rarity.UNCOMMON, mage.cards.g.GoblinFireleaper.class));