mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Added SVar:RemAIDeck:True to Brave the Elements.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user