mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18: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
|
ManaCost:W
|
||||||
Types:Instant
|
Types:Instant
|
||||||
Text:Choose a color. White creatures you control gain protection from the chosen color until end of turn.
|
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:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/brave_the_elements.jpg
|
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
|
SetInfo:ZEN|Uncommon|http://magiccards.info/scans/en/zen/4.jpg
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public class CardFactory_Instants {
|
|||||||
|
|
||||||
String getChosenColor() {
|
String getChosenColor() {
|
||||||
// Choose color for protection in Brave the Elements
|
// Choose color for protection in Brave the Elements
|
||||||
String color = "";
|
String color = "Black";
|
||||||
if (card.getController().isHuman()) {
|
if (card.getController().isHuman()) {
|
||||||
|
|
||||||
// String[] colors = Constant.Color.Colors;
|
// String[] colors = Constant.Color.Colors;
|
||||||
@@ -91,19 +91,8 @@ public class CardFactory_Instants {
|
|||||||
Object o = GuiUtils.getChoice("Choose color", colors);
|
Object o = GuiUtils.getChoice("Choose color", colors);
|
||||||
color = (String) o;
|
color = (String) o;
|
||||||
} else {
|
} else {
|
||||||
CardList list = new CardList();
|
if (getAttacker() != null) {
|
||||||
list.addAll(AllZoneUtil.getPlayerCardsInLibrary(AllZone.getHumanPlayer()));
|
color = getAttacker().getColor().get(0).toString();
|
||||||
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";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return color;
|
return color;
|
||||||
|
|||||||
Reference in New Issue
Block a user