adding Twiddle

This commit is contained in:
jendave
2011-08-06 03:58:35 +00:00
parent 3fa54e624c
commit c445b19f29
3 changed files with 37 additions and 0 deletions

View File

@@ -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_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
twiddle.jpg http://www.wizards.com/global/images/magic/general/twiddle.jpg
kor_duelist.jpg http://www.wizards.com/global/images/magic/general/kor_duelist.jpg
stalking_assassin.jpg http://www.wizards.com/global/images/magic/general/stalking_assassin.jpg
burst_lightning.jpg http://www.wizards.com/global/images/magic/general/burst_lightning.jpg

View File

@@ -1,3 +1,8 @@
Twiddle
U
Instant
You may tap or untap target artifact, creature, or land.
Kor Duelist
W
Creature Kor Soldier

View File

@@ -18082,6 +18082,37 @@ public class CardFactory implements NewConstants {
spell.setBeforePayMana(CardFactoryUtil.input_targetCreaturePlayer(spell, true, false));
}//*************** END ************ END **************************
//*****************************START*******************************
if(cardName.equals("Twiddle")) {
/*
* You may tap or untap target artifact, creature, or land.
*/
final SpellAbility spell = new Spell(card) {
private static final long serialVersionUID = 8126471702898625866L;
public boolean canPlayAI() {
return false;
}
public void chooseTargetAI() {
//setTargetCard(c);
}//chooseTargetAI()
public void resolve() {
if(AllZone.GameAction.isCardInPlay(getTargetCard())) {
if(getTargetCard().isTapped()) {
getTargetCard().untap();
}
else {
getTargetCard().tap();
}
}
}
};//SpellAbility
spell.setBeforePayMana(CardFactoryUtil.input_targetType(spell, "Artifact;Creature;Land"));
card.clearSpellAbility();
card.addSpellAbility(spell);
}//end Twiddle
//****************END*******END***********************
// Cards with Cycling abilities
// -1 means keyword "Cycling" not found