mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
add Temporal Adept (from Urza's Destiny)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
8
res/cardsfolder/temporal_adept.txt
Normal file
8
res/cardsfolder/temporal_adept.txt
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user