- Added Shimmer.

This commit is contained in:
Sloth
2011-09-30 19:45:54 +00:00
parent 9ee2344ee9
commit c5a10bdb18
3 changed files with 39 additions and 8 deletions

View File

@@ -425,6 +425,15 @@ public final class CardUtil {
return types;
}
public static ArrayList<String> getLandTypes() {
ArrayList<String> types = new ArrayList<String>();
types.addAll(Constant.CardTypes.basicTypes[0].list);
types.addAll(Constant.CardTypes.landTypes[0].list);
return types;
}
/**
* <p>isASuperType.</p>

View File

@@ -333,6 +333,26 @@ public class AbilityFactory_Choose {
//computer will need to choose a type
}
}
}
else if (type.equals("Land")) {
boolean valid = false;
while (!valid) {
if (sa.getActivatingPlayer().isHuman()) {
Object o = GuiUtils.getChoice("Choose a basic land type",
CardUtil.getLandTypes().toArray());
if (null == o) {
return;
}
String choice = (String) o;
if (!invalidTypes.contains(choice)) {
valid = true;
card.setChosenType(choice);
}
} else {
//TODO
//computer will need to choose a type
}
}
} //end if-else if
}
}