Add Shapeshifter (from Antiquities)

This commit is contained in:
jendave
2011-08-06 13:29:53 +00:00
parent 2c3ccf4ad8
commit 09f9edce07
4 changed files with 66 additions and 0 deletions

View File

@@ -16446,6 +16446,33 @@ public class CardFactory_Creatures {
card.addSpellAbility(ability);
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Shapeshifter")) {
Command intoPlay = new Command() {
private static final long serialVersionUID = 5447692676152380940L;
public void execute() {
int num = 0;
if(card.getController().isHuman()) {
String[] choices = new String[7];
for(int j = 0; j < 7; j++) {
choices[j] = ""+j;
}
String answer = (String)(AllZone.Display.getChoiceOptional(
card.getName()+" - Choose a number", choices));
num = Integer.parseInt(answer);
}
else {
num = 3;
}
card.setBaseAttack(num);
card.setBaseDefense(7-num);
}
};
card.addComesIntoPlayCommand(intoPlay);
}//*************** END ************ END **************************
if(hasKeyword(card, "Level up") != -1 && hasKeyword(card, "maxLevel") != -1)
{