mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Added Phyrexian Tower. There's about 15+ cards that have similar abilities. Sacrifice a <type>: Add X Mana. A few of these have complex mana combinations, but most of them are simple like Ashnod's Altar.
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
|
||||||
|
phyrexian_tower.jpg http://www.wizards.com/global/images/magic/general/phyrexian_tower.jpg
|
||||||
undiscovered_paradise.jpg http://www.wizards.com/global/images/magic/general/undiscovered_paradise.jpg
|
undiscovered_paradise.jpg http://www.wizards.com/global/images/magic/general/undiscovered_paradise.jpg
|
||||||
hagra_crocodile.jpg http://www.wizards.com/global/images/magic/general/hagra_crocodile.jpg
|
hagra_crocodile.jpg http://www.wizards.com/global/images/magic/general/hagra_crocodile.jpg
|
||||||
ancient_runes.jpg http://www.wizards.com/global/images/magic/general/ancient_runes.jpg
|
ancient_runes.jpg http://www.wizards.com/global/images/magic/general/ancient_runes.jpg
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
Phyrexian Tower
|
||||||
|
no cost
|
||||||
|
Legendary Land
|
||||||
|
no text
|
||||||
|
tap: add 1
|
||||||
|
|
||||||
Undiscovered Paradise
|
Undiscovered Paradise
|
||||||
no cost
|
no cost
|
||||||
Land
|
Land
|
||||||
|
|||||||
@@ -588,6 +588,7 @@ Penumbra Wurm
|
|||||||
Pestilence Demon
|
Pestilence Demon
|
||||||
Phantom Nishoba
|
Phantom Nishoba
|
||||||
Phyrexian Arena
|
Phyrexian Arena
|
||||||
|
Phyrexian Tower
|
||||||
Phytohydra
|
Phytohydra
|
||||||
Pianna, Nomad Captain
|
Pianna, Nomad Captain
|
||||||
Pine Barrens
|
Pine Barrens
|
||||||
|
|||||||
@@ -3328,6 +3328,59 @@ class CardFactory_Lands {
|
|||||||
|
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
//*************** START *********** START **************************
|
||||||
|
else if(cardName.equals("Phyrexian Tower")) {
|
||||||
|
final Ability_Mana ability = new Ability_Mana(card, "tap, Sacrifice a creature: Add B B") {
|
||||||
|
private static final long serialVersionUID = 5290938125518969674L;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canPlayAI() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void resolve() {
|
||||||
|
Card c = getTargetCard();
|
||||||
|
|
||||||
|
if(c != null && c.isCreature() ) {
|
||||||
|
card.tap();
|
||||||
|
AllZone.GameAction.sacrifice(c);
|
||||||
|
super.resolve();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String mana() {
|
||||||
|
return "B B";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
Input runtime = new Input() {
|
||||||
|
private static final long serialVersionUID = -7876248316975077074L;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void showMessage() {
|
||||||
|
CardList choice = new CardList();
|
||||||
|
final String player = card.getController();
|
||||||
|
PlayerZone play = AllZone.getZone(Constant.Zone.Play, player);
|
||||||
|
choice.addAll(play.getCards());
|
||||||
|
|
||||||
|
choice = choice.getType("Creature");
|
||||||
|
choice = choice.filter(new CardListFilter() {
|
||||||
|
public boolean addCard(Card c) {
|
||||||
|
return (c.isCreature());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
stopSetNext(CardFactoryUtil.input_targetSpecific(ability, choice,
|
||||||
|
"Sacrifice a creature:", true, false));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
card.addSpellAbility(ability);
|
||||||
|
ability.setBeforePayMana(runtime);
|
||||||
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
if(cardName.equals("Kjeldoran Outpost")) {
|
if(cardName.equals("Kjeldoran Outpost")) {
|
||||||
final Command comesIntoPlay = new Command() {
|
final Command comesIntoPlay = new Command() {
|
||||||
|
|||||||
Reference in New Issue
Block a user