mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
convert Moonlit Wake to triggers
This commit is contained in:
@@ -2,7 +2,8 @@ Name:Moonlit Wake
|
||||
ManaCost:2 W
|
||||
Types:Enchantment
|
||||
Text:no text
|
||||
K:Whenever a creature is put into a graveyard from the battlefield, you gain 1 life.
|
||||
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Creature | TriggerZones$ Battlefield | Execute$ TrigGain | TriggerDescription$ Whenever a creature is put into a graveyard from the battlefield, you gain 1 life.
|
||||
SVar:TrigGain:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ 1
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/moonlit_wake.jpg
|
||||
SetInfo:MMQ|Uncommon|http://magiccards.info/scans/en/mm/29.jpg
|
||||
|
||||
@@ -2463,7 +2463,6 @@ public class GameActionUtil {
|
||||
|
||||
public static void executeDestroyCreatureCardEffects(Card c, Card destroyed) {
|
||||
if (c.getName().equals("Fecundity")) destroyCreature_Fecundity(c, destroyed);
|
||||
else if (c.getName().equals("Moonlit Wake")) destroyCreature_Moonlit_Wake(c, destroyed);
|
||||
else if (c.getName().equals("Proper Burial")
|
||||
&& destroyed.getController().equals(c.getController())) destroyCreature_Proper_Burial(c, destroyed);
|
||||
else if (c.getName().equals("Sek'Kuar, Deathkeeper")
|
||||
@@ -2497,21 +2496,6 @@ public class GameActionUtil {
|
||||
AllZone.Stack.add(ability);
|
||||
}
|
||||
|
||||
private static void destroyCreature_Moonlit_Wake(final Card c, Card destroyed) {
|
||||
Ability ability = new Ability(c, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
c.getController().gainLife(1, c);
|
||||
}
|
||||
};
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Moonlit Wake - ").append(c.getController()).append(" gains 1 life.");
|
||||
ability.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.add(ability);
|
||||
}
|
||||
|
||||
private static void destroyCreature_Proper_Burial(final Card c, Card destroyed) {
|
||||
final Card crd = c;
|
||||
final Card crd2 = destroyed;
|
||||
|
||||
Reference in New Issue
Block a user