mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Converted the last ability of Ajani Vengeant to script.
This commit is contained in:
@@ -6,7 +6,7 @@ Loyalty:3
|
||||
A:AB$ Pump | Cost$ AddCounter<1/LOYALTY> | Planeswalker$ True | KW$ HIDDEN This card doesn't untap during your next untap step. | ValidTgts$ Permanent | Permanent$ True | IsCurse$ True | SpellDescription$ Target permanent doesn't untap during its controller's next untap step.
|
||||
A:AB$ DealDamage | Cost$ SubCounter<2/LOYALTY> | Planeswalker$ True | Tgt$ TgtCP | NumDmg$ 3 | SubAbility$ SVar=DBGainLife | SpellDescription$ CARDNAME deals 3 damage to target creature or player and you gain 3 life.
|
||||
SVar:DBGainLife:DB$GainLife | LifeAmount$ 3
|
||||
# Ultimate can't be converted to AF since DestroyAll doesn't target
|
||||
A:AB$ DestroyAll | Cost$ SubCounter<7/LOYALTY> | ValidTgts$ Player | TgtPrompt$ Select target player | ValidCards$ Land | Planeswalker$ True | SpellDescription$ Destroy all lands target player controls.
|
||||
SVar:Rarity:Mythic
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/ajani_vengeant.jpg
|
||||
SetInfo:ALA|Mythic|http://magiccards.info/scans/en/ala/154.jpg
|
||||
|
||||
@@ -616,43 +616,6 @@ public class CardFactory_Planeswalkers {
|
||||
}
|
||||
//*************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if (cardName.equals("Ajani Vengeant")) {
|
||||
|
||||
//ability3
|
||||
Cost cost = new Cost("SubCounter<7/LOYALTY>", cardName, true);
|
||||
final SpellAbility ability3 = new Ability_Activated(card, cost, new Target(card, "P")) {
|
||||
private static final long serialVersionUID = -1200172251117224702L;
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
Player player = getTargetPlayer();
|
||||
CardList land = player.getCardsIn(Zone.Battlefield);
|
||||
land = land.getType("Land");
|
||||
|
||||
for (Card c : land) {
|
||||
AllZone.getGameAction().destroy(c);
|
||||
}
|
||||
}//resolve()
|
||||
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
Player player = AllZone.getHumanPlayer();
|
||||
CardList land = player.getCardsIn(Zone.Battlefield);
|
||||
land = land.getType("Land");
|
||||
|
||||
setTargetPlayer(player);
|
||||
return card.getCounters(Counters.LOYALTY) >= 8 && land.size() >= 3;
|
||||
}
|
||||
};
|
||||
ability3.setDescription("-7: Destroy all lands target player controls.");
|
||||
ability3.getRestrictions().setPlaneswalker(true);
|
||||
|
||||
card.addSpellAbility(ability3);
|
||||
|
||||
return card;
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if (cardName.equals("Tezzeret the Seeker")) {
|
||||
|
||||
Reference in New Issue
Block a user