Rampant Growth
I'm new to programming in java, i barely managed to load an old version of forge into eclipse. I cant seem to get the new version in there atm. but yeh
Rampant Growth copied from Kodama's Reach with slight editing:
add to CardFactory.java:
Rampant Growth copied from Kodama's Reach with slight editing:
add to CardFactory.java:
- Code: Select all
//*************** START *********** START **************************
if(cardName.equals("Rampant Growth"))
{
SpellAbility spell = new Spell(card)
{
private static final long serialVersionUID = -8788464272892423520L;
public void resolve()
{
String player = card.getController();
if(player.equals(Constant.Player.Human))
humanResolve();
else
computerResolve();
}
public void computerResolve()
{
CardList land = new CardList(AllZone.Computer_Library.getCards());
land = land.getType("Basic");
//just to make the computer a little less predictable
land.shuffle();
//Checking if there's a land in the deck
if(land.size() != 0)
{
Card tapped = land.remove(0);
tapped.tap();
AllZone.Computer_Play.add(tapped);
AllZone.Computer_Library.remove(tapped);
}
}//computerResolve()
public void humanResolve()
{
PlayerZone play = AllZone.getZone(Constant.Zone.Play , card.getController());
PlayerZone library = AllZone.getZone(Constant.Zone.Library, card.getController());
CardList list = new CardList(library.getCards());
list = list.getType("Basic");
//Checking if there's a land in the deck
//No Lands
if(list.size() == 0)
return;
//1 or more lands
Object o = AllZone.Display.getChoiceOptional("Put into play tapped", list.toArray());
if(o != null)
{
Card c = (Card)o;
c.tap();
list.remove(c);
library.remove(c);
play.add(c);
AllZone.GameAction.shuffle(card.getController());
}//if
}//resolve()
};//SpellAbility
card.clearSpellAbility();
card.addSpellAbility(spell);
}//*************** END ************ END **************************
- Code: Select all
Rampant Growth
1 G
Sorcery
Search your library for a basic land card and put that card onto the battlefield tapped. Then shuffle your library.