mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Added Brave the Elements.
This commit is contained in:
@@ -38,6 +38,7 @@ snow_covered_mountain.jpg http://www.wizards.com/global/images/magic/gene
|
|||||||
snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg
|
snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg
|
||||||
snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
|
snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
|
||||||
snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
|
snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
|
||||||
|
brave_the_elements.jpg http://www.wizards.com/global/images/magic/general/brave_the_elements.jpg
|
||||||
stormscape_apprentice.jpg http://www.wizards.com/global/images/magic/general/stormscape_apprentice.jpg
|
stormscape_apprentice.jpg http://www.wizards.com/global/images/magic/general/stormscape_apprentice.jpg
|
||||||
stormscape_master.jpg http://www.wizards.com/global/images/magic/general/stormscape_master.jpg
|
stormscape_master.jpg http://www.wizards.com/global/images/magic/general/stormscape_master.jpg
|
||||||
thunderscape_apprentice.jpg http://www.wizards.com/global/images/magic/general/thunderscape_apprentice.jpg
|
thunderscape_apprentice.jpg http://www.wizards.com/global/images/magic/general/thunderscape_apprentice.jpg
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
Brave the Elements
|
||||||
|
W
|
||||||
|
Instant
|
||||||
|
Choose a color. White creatures you control gain protection from the chosen color until end of turn.
|
||||||
|
|
||||||
Perimeter Captain
|
Perimeter Captain
|
||||||
W
|
W
|
||||||
Creature Human Soldier
|
Creature Human Soldier
|
||||||
|
|||||||
@@ -3059,7 +3059,8 @@ public class CardFactory implements NewConstants {
|
|||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
if(cardName.equals("Burst of Speed") || cardName.equals("Chorus of Woe")
|
if(cardName.equals("Brave the Elements")
|
||||||
|
|| cardName.equals("Burst of Speed") || cardName.equals("Chorus of Woe")
|
||||||
|| cardName.equals("Dance of Shadows") || cardName.equals("Desperate Charge")
|
|| cardName.equals("Dance of Shadows") || cardName.equals("Desperate Charge")
|
||||||
|| cardName.equals("Glorious Charge") || cardName.equals("Kjeldoran War Cry")
|
|| cardName.equals("Glorious Charge") || cardName.equals("Kjeldoran War Cry")
|
||||||
|| cardName.equals("Magnify") || cardName.equals("Nature's Cloak")
|
|| cardName.equals("Magnify") || cardName.equals("Nature's Cloak")
|
||||||
@@ -3089,7 +3090,8 @@ public class CardFactory implements NewConstants {
|
|||||||
return att[0];
|
return att[0];
|
||||||
else return null;
|
else return null;
|
||||||
}
|
}
|
||||||
if(cardName.equals("Burst of Speed") || cardName.equals("Chorus of Woe")
|
if(cardName.equals("Brave the Elements")
|
||||||
|
|| cardName.equals("Burst of Speed") || cardName.equals("Chorus of Woe")
|
||||||
|| cardName.equals("Desperate Charge") || cardName.equals("Glorious Charge")
|
|| cardName.equals("Desperate Charge") || cardName.equals("Glorious Charge")
|
||||||
|| cardName.equals("Kjeldoran War Cry") || cardName.equals("Magnify")
|
|| cardName.equals("Kjeldoran War Cry") || cardName.equals("Magnify")
|
||||||
|| cardName.equals("Nature's Cloak") || cardName.equals("Nocturnal Raid")
|
|| cardName.equals("Nature's Cloak") || cardName.equals("Nocturnal Raid")
|
||||||
@@ -3149,6 +3151,10 @@ public class CardFactory implements NewConstants {
|
|||||||
}//getToughBoost()
|
}//getToughBoost()
|
||||||
|
|
||||||
String getKeywordBoost() {
|
String getKeywordBoost() {
|
||||||
|
if(cardName.equals("Brave the Elements")) {
|
||||||
|
String theColor = getChosenColor();
|
||||||
|
return "Protection from " + theColor;
|
||||||
|
}
|
||||||
if(cardName.equals("Burst of Speed")) return "Haste";
|
if(cardName.equals("Burst of Speed")) return "Haste";
|
||||||
|
|
||||||
if(cardName.equals("Overrun") || cardName.equals("Tromp the Domains")) return "Trample";
|
if(cardName.equals("Overrun") || cardName.equals("Tromp the Domains")) return "Trample";
|
||||||
@@ -3164,6 +3170,40 @@ public class CardFactory implements NewConstants {
|
|||||||
return "None";
|
return "None";
|
||||||
}//getKeywordBoost()
|
}//getKeywordBoost()
|
||||||
|
|
||||||
|
String getChosenColor() {
|
||||||
|
// Choose color for protection in Brave the Elements
|
||||||
|
String color = "";
|
||||||
|
if (card.getController().equals(Constant.Player.Human)) {
|
||||||
|
|
||||||
|
String[] colors = Constant.Color.Colors;
|
||||||
|
colors[colors.length-1] = null;
|
||||||
|
|
||||||
|
Object o = AllZone.Display.getChoice("Choose color", colors);
|
||||||
|
color = (String)o;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, Constant.Player.Human);
|
||||||
|
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, Constant.Player.Human);
|
||||||
|
CardList list = new CardList();
|
||||||
|
list.addAll(lib.getCards());
|
||||||
|
list.addAll(hand.getCards());
|
||||||
|
|
||||||
|
if (list.size() > 0)
|
||||||
|
{
|
||||||
|
String mpcolor = CardFactoryUtil.getMostProminentColor(list);
|
||||||
|
if (!mpcolor.equals(""))
|
||||||
|
color = mpcolor;
|
||||||
|
else
|
||||||
|
color = "black";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
color = "black";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return color;
|
||||||
|
} // getChosenColor
|
||||||
int getTtDBoost() // Tromp the Domains - +1/+1 for each basic land you control
|
int getTtDBoost() // Tromp the Domains - +1/+1 for each basic land you control
|
||||||
{
|
{
|
||||||
PlayerZone play = AllZone.getZone(Constant.Zone.Play, card.getController());
|
PlayerZone play = AllZone.getZone(Constant.Zone.Play, card.getController());
|
||||||
@@ -3201,9 +3241,9 @@ public class CardFactory implements NewConstants {
|
|||||||
|
|
||||||
CardList list = new CardList();
|
CardList list = new CardList();
|
||||||
|
|
||||||
if(cardName.equals("Burst of Speed")
|
if(cardName.equals("Brave the Elements") // Creatures "you" Control
|
||||||
|| // Creatures "you" Control
|
|| cardName.equals("Burst of Speed")
|
||||||
cardName.equals("Chorus of Woe") || cardName.equals("Dance of Shadows")
|
|| cardName.equals("Chorus of Woe") || cardName.equals("Dance of Shadows")
|
||||||
|| cardName.equals("Desperate Charge") || cardName.equals("Glorious Charge")
|
|| cardName.equals("Desperate Charge") || cardName.equals("Glorious Charge")
|
||||||
|| cardName.equals("Kjeldoran War Cry") || cardName.equals("Nature's Cloak")
|
|| cardName.equals("Kjeldoran War Cry") || cardName.equals("Nature's Cloak")
|
||||||
|| cardName.equals("Overrun") || cardName.equals("Path of Anger's Flame")
|
|| cardName.equals("Overrun") || cardName.equals("Path of Anger's Flame")
|
||||||
@@ -3224,6 +3264,15 @@ public class CardFactory implements NewConstants {
|
|||||||
return CardUtil.getColors(c).contains(Constant.Color.Green);
|
return CardUtil.getColors(c).contains(Constant.Color.Green);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else if(cardName.equals("Brave the Elements")) {
|
||||||
|
// White creatures you control
|
||||||
|
list = list.filter(new CardListFilter()
|
||||||
|
{
|
||||||
|
public boolean addCard(Card c)
|
||||||
|
{
|
||||||
|
return CardUtil.getColors(c).contains(Constant.Color.White);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user