- Added SVar:RemAIDeck:True to Brave the Elements.

This commit is contained in:
Sloth
2011-09-05 11:46:56 +00:00
parent 738de02b15
commit 9a038a53b6
2 changed files with 4 additions and 15 deletions

View File

@@ -2,7 +2,7 @@ Name:Brave the Elements
ManaCost:W
Types:Instant
Text:Choose a color. White creatures you control gain protection from the chosen color until end of turn.
SVar:PlayMain1:TRUE
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/brave_the_elements.jpg
SetInfo:ZEN|Uncommon|http://magiccards.info/scans/en/zen/4.jpg

View File

@@ -79,7 +79,7 @@ public class CardFactory_Instants {
String getChosenColor() {
// Choose color for protection in Brave the Elements
String color = "";
String color = "Black";
if (card.getController().isHuman()) {
// String[] colors = Constant.Color.Colors;
@@ -91,19 +91,8 @@ public class CardFactory_Instants {
Object o = GuiUtils.getChoice("Choose color", colors);
color = (String) o;
} else {
CardList list = new CardList();
list.addAll(AllZoneUtil.getPlayerCardsInLibrary(AllZone.getHumanPlayer()));
list.addAll(AllZoneUtil.getPlayerHand(AllZone.getHumanPlayer()));
if (list.size() > 0) {
String mpcolor = CardFactoryUtil.getMostProminentColor(list);
if (!mpcolor.equals("")) {
color = mpcolor;
} else {
color = "black";
}
} else {
color = "black";
if (getAttacker() != null) {
color = getAttacker().getColor().get(0).toString();
}
}
return color;