-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LTC] Implement Galadriel, Light of Valinor (#11225)
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package mage.cards.g; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Susucre
Author
Contributor
|
||
|
||
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JayDi85 Could you please tag this commit with 1.4.52-V5-beta9 ?