mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
convert Emeria Angel to triggers
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
Name:Emeria Angel
|
Name:Emeria Angel
|
||||||
ManaCost:2 W W
|
ManaCost:2 W W
|
||||||
Types:Creature Angel
|
Types:Creature Angel
|
||||||
Text:Landfall - Whenever a land enters the battlefield under your control, you may put a 1/1 white Bird creature token with flying onto the battlefield.
|
Text:no text
|
||||||
PT:3/3
|
PT:3/3
|
||||||
K:Flying
|
K:Flying
|
||||||
K:Landfall
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Land.YouCtrl | TriggerZones$ Battlefield | Execute$ TrigToken | Optional$ True | TriggerDescription$ Landfall - Whenever a land enters the battlefield under your control, you may put a 1/1 white Bird creature token with flying onto the battlefield.
|
||||||
|
SVar:TrigToken:AB$Token | Cost$ 0 | TokenAmount$ 1 | TokenName$ Bird | TokenTypes$ Creature,Bird | TokenOwner$ Controller | TokenColors$ White | TokenPower$ 1 | TokenToughness$ 1 | TokenKeywords$ Flying
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/emeria_angel.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/emeria_angel.jpg
|
||||||
SetInfo:ZEN|Rare|http://magiccards.info/scans/en/zen/11.jpg
|
SetInfo:ZEN|Rare|http://magiccards.info/scans/en/zen/11.jpg
|
||||||
|
|||||||
@@ -2492,8 +2492,7 @@ public class GameActionUtil {
|
|||||||
//***CREATURES END HERE***
|
//***CREATURES END HERE***
|
||||||
|
|
||||||
public static void executeLandfallEffects(Card c) {
|
public static void executeLandfallEffects(Card c) {
|
||||||
if(c.getName().equals("Emeria Angel")) landfall_Emeria_Angel(c);
|
if(c.getName().equals("Ob Nixilis, the Fallen")) landfall_Ob_Nixilis(c);
|
||||||
else if(c.getName().equals("Ob Nixilis, the Fallen")) landfall_Ob_Nixilis(c);
|
|
||||||
else if(c.getName().equals("Lotus Cobra")) landfall_Lotus_Cobra(c);
|
else if(c.getName().equals("Lotus Cobra")) landfall_Lotus_Cobra(c);
|
||||||
else if(c.getName().equals("Avenger of Zendikar")) landfall_Avenger_of_Zendikar(c);
|
else if(c.getName().equals("Avenger of Zendikar")) landfall_Avenger_of_Zendikar(c);
|
||||||
else if(c.getName().equals("Eternity Vessel")) landfall_Eternity_Vessel(c);
|
else if(c.getName().equals("Eternity Vessel")) landfall_Eternity_Vessel(c);
|
||||||
@@ -2624,28 +2623,6 @@ public class GameActionUtil {
|
|||||||
else return true;
|
else return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void landfall_Emeria_Angel(Card c) {
|
|
||||||
final Card crd = c;
|
|
||||||
Ability ability = new Ability(c, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
CardFactoryUtil.makeToken("Bird", "W 1 1 Bird", crd.getController(), "W", new String[] {"Creature", "Bird"}, 1, 1,
|
|
||||||
new String[] {"Flying"});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(c.getName()).append(" - Landfall: ").append(c.getController());
|
|
||||||
sb.append(" puts a 1/1 white Bird creature token with flying onto the battlefield.");
|
|
||||||
ability.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
if(c.getController().equals(AllZone.HumanPlayer)) {
|
|
||||||
if(showLandfallDialog(c)) AllZone.Stack.add(ability);
|
|
||||||
}
|
|
||||||
|
|
||||||
else if(c.getController().equals(AllZone.ComputerPlayer)) AllZone.Stack.add(ability);
|
|
||||||
}//landfall_Emeria_Angel
|
|
||||||
|
|
||||||
private static void landfall_Ob_Nixilis(Card c) {
|
private static void landfall_Ob_Nixilis(Card c) {
|
||||||
final Card crd = c;
|
final Card crd = c;
|
||||||
Ability ability = new Ability(c, "0") {
|
Ability ability = new Ability(c, "0") {
|
||||||
|
|||||||
Reference in New Issue
Block a user