mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Added Shimmer.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user