mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
-Added remaining ability cost reducers
-Added Elixir of Immortality and fixed Feldon's Cane description -Added Sprouting Phytohydra
This commit is contained in:
@@ -17363,6 +17363,60 @@ public class CardFactory_Creatures {
|
||||
return newCard;
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Sprouting Phytohydra")) {
|
||||
final Card newCard = new Card() {
|
||||
@Override
|
||||
public void addDamage(HashMap<Card, Integer> map) {
|
||||
final HashMap<Card, Integer> m = map;
|
||||
final Ability ability = new Ability(card, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
if(getController().isHuman() &&
|
||||
AllZone.Display.getChoice("Copy " + getSourceCard(),
|
||||
new String[] {"Yes", "No"}).equals("No"))
|
||||
return;//*
|
||||
PlayerZone play = AllZone.getZone(Constant.Zone.Play, getSourceCard().getController());
|
||||
CardList DoublingSeasons = new CardList(play.getCards());
|
||||
DoublingSeasons = DoublingSeasons.getName("Doubling Season");
|
||||
PlayerZone_ComesIntoPlay.SimultaneousEntry = true;
|
||||
double Count = DoublingSeasons.size();
|
||||
Count = Math.pow(2,Count);
|
||||
for(int i = 0; i < Count; i++) {
|
||||
if(i + 1== Count) PlayerZone_ComesIntoPlay.SimultaneousEntry = false;
|
||||
Card Copy = AllZone.CardFactory.copyCardintoNew(getSourceCard());
|
||||
Copy.setToken(true);
|
||||
Copy.setController(getSourceCard().getController());
|
||||
play.add(Copy);
|
||||
}// */
|
||||
}
|
||||
};
|
||||
ability.setStackDescription(toString() + " - you may put a token that's a copy of " + getName() + " onto the battlefield.");
|
||||
AllZone.Stack.add(ability);
|
||||
|
||||
for(Entry<Card, Integer> entry : m.entrySet()) {
|
||||
this.addDamage(entry.getValue(), entry.getKey());
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
newCard.setOwner(card.getOwner());
|
||||
newCard.setController(card.getController());
|
||||
|
||||
newCard.setManaCost(card.getManaCost());
|
||||
newCard.setName(card.getName());
|
||||
newCard.setType(card.getType());
|
||||
newCard.setText(card.getSpellText());
|
||||
newCard.setBaseAttack(card.getBaseAttack());
|
||||
newCard.setBaseDefense(card.getBaseDefense());
|
||||
|
||||
newCard.addSpellAbility(new Spell_Permanent(newCard));
|
||||
|
||||
newCard.setSVars(card.getSVars());
|
||||
|
||||
return newCard;
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Thoughtcutter Agent")) {
|
||||
|
||||
Reference in New Issue
Block a user