- I made a minor edit to Wurmcoil Engine. This card will now create tokens with the image name "c_3_3_wurm_deathtouch.jpg" and "c_3_3_wurm_lifelink.jpg". We have a few other icons that required us to use this image name system.

This commit is contained in:
jendave
2011-08-06 08:40:29 +00:00
parent a1efd3440d
commit 6921c00021

View File

@@ -11579,32 +11579,34 @@ public class CardFactory_Creatures {
}//*************** END ************ END ************************** }//*************** END ************ END **************************
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Wurmcoil Engine")) { else if(cardName.equals("Wurmcoil Engine")) {
final Ability ability = new Ability(card, "0") { final Ability ability = new Ability(card, "0") {
@Override @Override
public void resolve() { public void resolve() {
makeTokens(); makeTokens();
}//resolve() }//resolve()
void makeTokens() { void makeTokens() {
CardFactoryUtil.makeToken("Wurm", "C 3 3 Wurm", card, "", new String[] { CardFactoryUtil.makeToken("Wurm", "C 3 3 Wurm Deathtouch", card, "", new String[] {
"Artifact", "Creature", "Wurm"}, 3, 3, new String[] {"Deathtouch"}); "Artifact", "Creature", "Wurm"}, 3, 3, new String[] {"Deathtouch"});
CardFactoryUtil.makeToken("Wurm", "C 3 3 Wurm", card, "", new String[] { CardFactoryUtil.makeToken("Wurm", "C 3 3 Wurm Lifelink", card, "", new String[] {
"Artifact", "Creature", "Wurm"}, 3, 3, new String[] {"Lifelink"}); "Artifact", "Creature", "Wurm"}, 3, 3, new String[] {"Lifelink"});
}//makeToken() }//makeToken()
};//Ability };//Ability
Command makeTokens = new Command() { Command makeTokens = new Command() {
private static final long serialVersionUID = 8458814538376248271L; private static final long serialVersionUID = 8458814538376248271L;
public void execute() { public void execute() {
ability.setStackDescription(card.getName() StringBuilder sb = new StringBuilder();
+ " - put creature tokens into play."); sb.append(card.getName()).append(" - put creature tokens into play.");
ability.setStackDescription(sb.toString());
AllZone.Stack.add(ability); AllZone.Stack.add(ability);
} }
}; };//Command
card.addDestroyCommand(makeTokens); card.addDestroyCommand(makeTokens);