mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
convert Animate Land to AF_Animate
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
Name:Animate Land
|
Name:Animate Land
|
||||||
ManaCost:G
|
ManaCost:G
|
||||||
Types:Instant
|
Types:Instant
|
||||||
Text:Until end of turn, target land is 3/3 creature that's still a land.
|
Text:no text
|
||||||
|
A:SP$Animate | Cost$ G | ValidTgts$ Land | TgtPrompt$ Select target land | Power$ 3 | Toughness$ 3 | Types$ Creature | SpellDescription$ Until end of turn, target land becomes a 3/3 creature that's still a land.
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://resources.wizards.com/magic/cards/ne/en-us/card21377.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/animate_land.jpg
|
||||||
SetInfo:NMS|Uncommon|http://magiccards.info/scans/en/ne/101.jpg
|
SetInfo:NMS|Uncommon|http://magiccards.info/scans/en/ne/101.jpg
|
||||||
End
|
End
|
||||||
@@ -1132,62 +1132,6 @@ public class CardFactory_Instants {
|
|||||||
card.clearSpellAbility();
|
card.clearSpellAbility();
|
||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
|
||||||
else if(cardName.equals("Animate Land")) {
|
|
||||||
final Card[] target = new Card[1];
|
|
||||||
final Command untilEOT = new Command() {
|
|
||||||
private static final long serialVersionUID = -3359299797188942353L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
if(AllZone.GameAction.isCardInPlay(target[0])) {
|
|
||||||
target[0].removeType("Creature");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
SpellAbility spell = new Spell(card) {
|
|
||||||
private static final long serialVersionUID = 4890851927124377327L;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
target[0] = getTargetCard();
|
|
||||||
if(AllZone.GameAction.isCardInPlay(target[0]) && CardFactoryUtil.canTarget(card, target[0])) {
|
|
||||||
target[0].addType("Creature");
|
|
||||||
target[0].setBaseAttack(3);
|
|
||||||
target[0].setBaseDefense(3);
|
|
||||||
|
|
||||||
AllZone.EndOfTurn.addUntil(untilEOT);
|
|
||||||
}
|
|
||||||
}//resolve()
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canPlayAI() {
|
|
||||||
return false;
|
|
||||||
/* all this doesnt work, computer will not attack with the animated land
|
|
||||||
|
|
||||||
//does the computer have any land in play?
|
|
||||||
CardList land = new CardList(AllZone.Computer_Play.getCards());
|
|
||||||
land = land.getType("Land");
|
|
||||||
land = land.filter(new CardListFilter()
|
|
||||||
{
|
|
||||||
public boolean addCard(Card c)
|
|
||||||
{
|
|
||||||
//checks for summoning sickness, and is not tapped
|
|
||||||
return CombatUtil.canAttack(c);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return land.size() > 1 && CardFactoryUtil.AI_isMainPhase();
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
};//SpellAbility
|
|
||||||
// spell.setChooseTargetAI(CardFactoryUtil.AI_targetType("Land", AllZone.Computer_Play));
|
|
||||||
|
|
||||||
spell.setBeforePayMana(CardFactoryUtil.input_targetType(spell, "Land"));
|
|
||||||
card.clearSpellAbility();
|
|
||||||
card.addSpellAbility(spell);
|
|
||||||
}//*************** END ************ END **************************
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
|
|||||||
Reference in New Issue
Block a user