mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Added Deserted Temple.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
Deserted Temple
|
||||
no cost
|
||||
Land
|
||||
no text
|
||||
tap: add 1
|
||||
|
||||
Hymn to Tourach
|
||||
B B
|
||||
Sorcery
|
||||
|
||||
@@ -1804,6 +1804,61 @@ class CardFactory_Lands {
|
||||
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Deserted Temple")) {
|
||||
final Ability_Tap ability = new Ability_Tap(card, "1") {
|
||||
|
||||
private static final long serialVersionUID = -3463896908132386453L;
|
||||
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
|
||||
final Card[] target = new Card[1];
|
||||
|
||||
|
||||
target[0] = getTargetCard();
|
||||
if(AllZone.GameAction.isCardInPlay(target[0])
|
||||
&& target[0].isTapped()
|
||||
&& (target[0].getType().contains("Land")) && CardFactoryUtil.canTarget(card, target[0])) {
|
||||
target[0].untap();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Input runtime = new Input() {
|
||||
private static final long serialVersionUID = -6822924521729238991L;
|
||||
|
||||
@Override
|
||||
public void showMessage() {
|
||||
CardList choice = new CardList();
|
||||
choice.addAll(AllZone.Human_Play.getCards());
|
||||
choice.addAll(AllZone.Computer_Play.getCards());
|
||||
|
||||
choice = choice.getType("Land");
|
||||
choice = choice.filter(new CardListFilter() {
|
||||
public boolean addCard(Card c) {
|
||||
return (c.isTapped());
|
||||
}
|
||||
});
|
||||
|
||||
//System.out.println("size of choice: " + choice.size());
|
||||
stopSetNext(CardFactoryUtil.input_targetSpecific(ability, choice, "Select target Land", true,
|
||||
false));
|
||||
}
|
||||
};
|
||||
|
||||
ability.setDescription("1, tap: Untap target land.");
|
||||
|
||||
card.addSpellAbility(ability);
|
||||
ability.setBeforePayMana(runtime);
|
||||
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Academy Ruins")) {
|
||||
final Ability_Tap ability = new Ability_Tap(card, "1 U") {
|
||||
|
||||
Reference in New Issue
Block a user