add Temporal Adept (from Urza's Destiny)

This commit is contained in:
jendave
2011-08-06 09:07:54 +00:00
parent a986074841
commit ecfb0b9397
3 changed files with 37 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -4072,6 +4072,7 @@ res/cardsfolder/tempest_of_light.txt -text svneol=native#text/plain
res/cardsfolder/temple_acolyte.txt -text svneol=native#text/plain
res/cardsfolder/temple_bell.txt -text svneol=native#text/plain
res/cardsfolder/temple_garden.txt -text svneol=native#text/plain
res/cardsfolder/temporal_adept.txt -text svneol=native#text/plain
res/cardsfolder/temporal_eddy.txt -text svneol=native#text/plain
res/cardsfolder/temporal_fissure.txt -text svneol=native#text/plain
res/cardsfolder/temporal_manipulation.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,8 @@
Name:Temporal Adept
ManaCost:1 U U
Types:Creature Human Wizard
Text:U U U, tap: Return target permanent to its owner's hand.
PT:1/1
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/temporal_adept.jpg
End

View File

@@ -20408,6 +20408,34 @@ public class CardFactory_Creatures {
card.addComesIntoPlayCommand(cip);
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Temporal Adept")) {
final Ability_Tap ability = new Ability_Tap(card, "U U U") {
@Override
public void resolve() {
Card target = getTargetCard();
if( CardFactoryUtil.canTarget(card, target)) {
AllZone.GameAction.moveToHand(target);
}
}
@Override
public boolean canPlay() {
CardList targets = AllZoneUtil.getCardsInPlay();
return AllZoneUtil.isCardInPlay(card) && targets.size() > 0 && super.canPlay();
}
@Override
public boolean canPlayAI() {
return false;
}
};//SpellAbility
card.addSpellAbility(ability);
ability.setStackDescription(card.getName() + " - return target permanent to owner's hand.");
ability.setBeforePayMana(CardFactoryUtil.input_targetPermanent(ability));
}//*************** END ************ END **************************
// Cards with Cycling abilities
// -1 means keyword "Cycling" not found