convert Twitch and Twiddle to AF.

This commit is contained in:
jendave
2011-08-06 19:35:33 +00:00
parent 864ddca7bc
commit f12697d0ef
3 changed files with 5 additions and 42 deletions

View File

@@ -1,7 +1,8 @@
Name:Twiddle
ManaCost:U
Types:Instant
Text:You may tap or untap target artifact, creature, or land.
Text:no text
A:SP$TapOrUntap | Cost$ U | ValidTgts$ Artifact,Creature,Land | TgtPrompt$ Select target artifact, creature, or land | SpellDescription$ You may tap or untap target artifact, creature, or land.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/twiddle.jpg

View File

@@ -1,7 +1,9 @@
Name:Twitch
ManaCost:2 U
Types:Instant
Text:You may tap or untap target artifact, creature, or land. Draw a card.
Text:no text
A:SP$TapOrUntap | Cost$ U | ValidTgts$ Artifact,Creature,Land | TgtPrompt$ Select target artifact, creature, or land | SubAbility$ SVar=DBDraw | SpellDescription$ You may tap or untap target artifact, creature, or land.
SVar:DBDraw:DB$Draw | Defined$ You | NumCards$ 1 | SpellDescription$ Draw a card.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/twitch.jpg

View File

@@ -1325,46 +1325,6 @@ public class CardFactory_Instants {
}//*************** END ************ END **************************
//*****************************START*******************************
else if(cardName.equals("Twiddle") || cardName.equals("Twitch")) {
/*
* You may tap or untap target artifact, creature, or land.
*/
String cost = cardName.equals("Twiddle") ? "U" : "2 U";
Ability_Cost abCost = new Ability_Cost(cost, cardName, false);
Target t = new Target(card, "Select target artifact, creature, or land", "Artifact,Creature,Land".split(","));
final SpellAbility spell = new Spell(card, abCost, t) {
private static final long serialVersionUID = 8126471702898625866L;
public boolean canPlayAI() {
return false;
}
public void chooseTargetAI() {
//setTargetCard(c);
}//chooseTargetAI()
public void resolve() {
Card target = getTargetCard();
if(AllZone.GameAction.isCardInPlay(target) && CardFactoryUtil.canTarget(card, target)) {
if(card.getController().isHuman()) {
String[] tapOrUntap = new String[] {"Tap", "Untap"};
Object z = GuiUtils.getChoice("Tap or Untap?", tapOrUntap);
boolean tap = (z.equals("Tap")) ? true : false;
if(tap) target.tap();
else target.untap();
}
if (cardName.equals("Twitch"))
getActivatingPlayer().drawCard();
}
}
};//SpellAbility
card.clearSpellAbility();
card.addSpellAbility(spell);
}//****************END*******END***********************
//*************** START *********** START **************************
else if(cardName.equals("Storm Seeker") || cardName.equals("Sudden Impact")) {
/*