mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
add Inkmoth Nexus (from Mirrodin Besieged)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -2754,6 +2754,7 @@ res/cardsfolder/initiates_of_the_ebon_hand.txt -text svneol=native#text/plain
|
|||||||
res/cardsfolder/ink_dissolver.txt -text svneol=native#text/plain
|
res/cardsfolder/ink_dissolver.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/inkfathom_divers.txt -text svneol=native#text/plain
|
res/cardsfolder/inkfathom_divers.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/inkfathom_infiltrator.txt -text svneol=native#text/plain
|
res/cardsfolder/inkfathom_infiltrator.txt -text svneol=native#text/plain
|
||||||
|
res/cardsfolder/inkmoth_nexus.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/inkwell_leviathan.txt -text svneol=native#text/plain
|
res/cardsfolder/inkwell_leviathan.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/inner_calm_outer_strength.txt -text svneol=native#text/plain
|
res/cardsfolder/inner_calm_outer_strength.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/inner_chamber_guard.txt -text svneol=native#text/plain
|
res/cardsfolder/inner_chamber_guard.txt -text svneol=native#text/plain
|
||||||
|
|||||||
8
res/cardsfolder/inkmoth_nexus.txt
Normal file
8
res/cardsfolder/inkmoth_nexus.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
Name:Inkmoth Nexus
|
||||||
|
ManaCost:no cost
|
||||||
|
Types:Land
|
||||||
|
Text:no text
|
||||||
|
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
|
||||||
|
SVar:Rarity:Rare
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/inkmoth_nexus.jpg
|
||||||
|
End
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
package forge;
|
package forge;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import javax.swing.JOptionPane;
|
import javax.swing.JOptionPane;
|
||||||
|
|
||||||
@@ -447,11 +448,13 @@ class CardFactory_Lands {
|
|||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Blinkmoth Nexus")) {
|
else if(cardName.equals("Blinkmoth Nexus") || cardName.equals("Inkmoth Nexus")) {
|
||||||
final long[] timeStamp = new long[1];
|
final long[] timeStamp = new long[1];
|
||||||
final SpellAbility a1 = new Ability(card, "1") {
|
Ability_Cost abCost = new Ability_Cost("1", cardName, true);
|
||||||
|
final SpellAbility a1 = new Ability_Activated(card, abCost, null) {
|
||||||
|
private static final long serialVersionUID = -8834858776517935070L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlayAI() {
|
public boolean canPlayAI() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -459,18 +462,18 @@ class CardFactory_Lands {
|
|||||||
@Override
|
@Override
|
||||||
public void resolve() {
|
public void resolve() {
|
||||||
Card c = card;
|
Card c = card;
|
||||||
String[] types = { "Artifact", "Creature", "Blinkmoth" };
|
final String[] types = { "Artifact", "Creature", "Blinkmoth" };
|
||||||
String[] keywords = { "Flying" };
|
final ArrayList<String> keywords = new ArrayList<String>();
|
||||||
timeStamp[0] = CardFactoryUtil.activateManland(c, 1, 1, types, keywords, "0");
|
keywords.add("Flying");
|
||||||
|
if(cardName.equals("Inkmoth Nexus")) keywords.add("Infect");
|
||||||
|
final String[] kwArray = new String[keywords.size()];
|
||||||
|
timeStamp[0] = CardFactoryUtil.activateManland(c, 1, 1, types, keywords.toArray(kwArray), "0");
|
||||||
|
|
||||||
final Command eot1 = new Command() {
|
final Command eot1 = new Command() {
|
||||||
private static final long serialVersionUID = 3564161001279001235L;
|
private static final long serialVersionUID = 3564161001279001235L;
|
||||||
long stamp = timeStamp[0];
|
long stamp = timeStamp[0];
|
||||||
public void execute() {
|
public void execute() {
|
||||||
Card c = card;
|
CardFactoryUtil.revertManland(card, types, keywords.toArray(kwArray), "", stamp);
|
||||||
String[] types = { "Artifact", "Creature", "Blinkmoth" };
|
|
||||||
String[] keywords = { "Flying" };
|
|
||||||
CardFactoryUtil.revertManland(c, types, keywords, "", stamp);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -478,19 +481,16 @@ class CardFactory_Lands {
|
|||||||
}
|
}
|
||||||
};//SpellAbility
|
};//SpellAbility
|
||||||
card.addSpellAbility(a1);
|
card.addSpellAbility(a1);
|
||||||
a1.setDescription("1: Blinkmoth Nexus becomes a 1/1 Blinkmoth artifact creature with flying until end of turn. It's still a land.");
|
StringBuilder sbDesc = new StringBuilder();
|
||||||
|
sbDesc.append(abCost).append(cardName).append(" becomes a 1/1 Blinkmoth artifact creature with flying ");
|
||||||
|
if(cardName.equals("Inkmoth Nexus")) sbDesc.append("and infect ");
|
||||||
|
sbDesc.append("until end of turn. It's still a land.");
|
||||||
|
a1.setDescription(sbDesc.toString());
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(card).append(" becomes a 1/1 creature with flying until EOT");
|
sb.append(card).append(" becomes a 1/1 creature with flying ");
|
||||||
|
if(cardName.equals("Inkmoth Nexus")) sb.append("and infect ");
|
||||||
|
sb.append("until EOT");
|
||||||
a1.setStackDescription(sb.toString());
|
a1.setStackDescription(sb.toString());
|
||||||
|
|
||||||
Command paid1 = new Command() {
|
|
||||||
private static final long serialVersionUID = -5122292582368202498L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
AllZone.Stack.add(a1);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
a1.setBeforePayMana(new Input_PayManaCost_Ability(a1.getManaCost(), paid1));
|
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user