mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
convert Twitch and Twiddle to AF.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1324,46 +1324,6 @@ public class CardFactory_Instants {
|
||||
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
|
||||
}//*************** 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")) {
|
||||
|
||||
Reference in New Issue
Block a user