Skip to content

Commit

Permalink
[LTC] Implement Galadriel, Light of Valinor (#11225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Susucre authored Sep 28, 2023
1 parent 4236e31 commit c335757
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
67 changes: 67 additions & 0 deletions Mage.Sets/src/mage/cards/g/GaladrielLightOfValinor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
package mage.cards.g;

This comment has been minimized.

Copy link
@Susucre

Susucre Sep 29, 2023

Author Contributor

@JayDi85 Could you please tag this commit with 1.4.52-V5-beta9 ?

This comment has been minimized.

Copy link
@JayDi85

JayDi85 Sep 29, 2023

Member

added

This comment has been minimized.

Copy link
@Susucre

Susucre Sep 29, 2023

Author Contributor

Thanks! I've starting doing changelogs in the wiki and this helps solidify version numbers.


import mage.MageInt;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.Mode;
import mage.abilities.common.AllianceAbility;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.counter.AddCountersAllEffect;
import mage.abilities.effects.keyword.ScryEffect;
import mage.abilities.effects.mana.AddManaToManaPoolSourceControllerEffect;
import mage.abilities.hint.common.ModesAlreadyUsedHint;
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 java.util.UUID;

/**
* @author Susucr
*/
public final class GaladrielLightOfValinor extends CardImpl {

public GaladrielLightOfValinor(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{W}{U}");

this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.ELF);
this.subtype.add(SubType.NOBLE);
this.power = new MageInt(3);
this.toughness = new MageInt(3);

// Alliance — Whenever another creature enters the battlefield under your control, choose one that hasn't been chosen this turn —
// • Add {G}{G}{G}.
Ability ability = new AllianceAbility(new AddManaToManaPoolSourceControllerEffect(Mana.GreenMana(3)));
ability.setModeTag("add mana");
ability.getModes().setEachModeOnlyOnce(true);
ability.getModes().setResetEachTurn(true);

// • Put a +1/+1 counter on each creature you control.
ability.addMode(
new Mode(new AddCountersAllEffect(CounterType.P1P1.createInstance(), StaticFilters.FILTER_CONTROLLED_CREATURE))
.setModeTag("put +1/+1 counters")
);

// • Scry 2, then draw a card.
Mode mode = new Mode(new ScryEffect(2, false)).setModeTag("scry and draw");
mode.addEffect(new DrawCardSourceControllerEffect(1).concatBy(", then"));
ability.addMode(mode);

ability.addHint(ModesAlreadyUsedHint.instance);
this.addAbility(ability);
}

private GaladrielLightOfValinor(final GaladrielLightOfValinor card) {
super(card);
}

@Override
public GaladrielLightOfValinor copy() {
return new GaladrielLightOfValinor(this);
}
}
1 change: 1 addition & 0 deletions Mage.Sets/src/mage/sets/TalesOfMiddleEarthCommander.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ private TalesOfMiddleEarthCommander() {
cards.add(new SetCardInfo("Galadhrim Brigade", 502, Rarity.RARE, mage.cards.g.GaladhrimBrigade.class));
cards.add(new SetCardInfo("Gandalf, Westward Voyager", 6, Rarity.MYTHIC, mage.cards.g.GandalfWestwardVoyager.class));
cards.add(new SetCardInfo("Galadriel, Elven-Queen", 3, Rarity.MYTHIC, mage.cards.g.GaladrielElvenQueen.class));
cards.add(new SetCardInfo("Galadriel, Light of Valinor", 498, Rarity.MYTHIC, mage.cards.g.GaladrielLightOfValinor.class));
cards.add(new SetCardInfo("Gemstone Caverns", 364, Rarity.MYTHIC, mage.cards.g.GemstoneCaverns.class));
cards.add(new SetCardInfo("Genesis Wave", 245, Rarity.RARE, mage.cards.g.GenesisWave.class));
cards.add(new SetCardInfo("Ghost Quarter", 314, Rarity.UNCOMMON, mage.cards.g.GhostQuarter.class));
Expand Down

0 comments on commit c335757

Please sign in to comment.