mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Celestial Purge added.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
Celestial Purge
|
||||||
|
1 W
|
||||||
|
Instant
|
||||||
|
Exile target black or red permanent.
|
||||||
|
|
||||||
Ajani Vengeant
|
Ajani Vengeant
|
||||||
2 R W
|
2 R W
|
||||||
Planeswalker - Ajani
|
Planeswalker - Ajani
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
program/mail=mtgerror@yahoo.com
|
program/mail=mtgerror@yahoo.com
|
||||||
program/forum=http://www.slightlymagic.net/forum/viewforum.php?f=26
|
program/forum=http://www.slightlymagic.net/forum/viewforum.php?f=26
|
||||||
program/version=MTG Forge -- official beta: 09/11/02, SVN revision: 98
|
program/version=MTG Forge -- official beta: 09/11/02, SVN revision: 99
|
||||||
|
|
||||||
tokens--file=AllTokens.txt
|
tokens--file=AllTokens.txt
|
||||||
|
|
||||||
|
|||||||
@@ -17062,7 +17062,88 @@ return land.size() > 1 && CardFactoryUtil.AI_isMainPhase();
|
|||||||
card.clearSpellAbility();
|
card.clearSpellAbility();
|
||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
if (cardName.equals("Celestial Purge"))
|
||||||
|
{
|
||||||
|
final Spell spell = new Spell(card)
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 2626237206744317044L;
|
||||||
|
|
||||||
|
public void resolve()
|
||||||
|
{
|
||||||
|
Card c = getTargetCard();
|
||||||
|
|
||||||
|
if (AllZone.GameAction.isCardInPlay(c) && CardFactoryUtil.canTarget(card, c))
|
||||||
|
{
|
||||||
|
AllZone.GameAction.removeFromGame(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void chooseTargetAI()
|
||||||
|
{
|
||||||
|
PlayerZone hplay = AllZone.getZone(Constant.Zone.Play, Constant.Player.Human);
|
||||||
|
CardList human = new CardList(hplay.getCards());
|
||||||
|
human = human.filter(new CardListFilter()
|
||||||
|
{
|
||||||
|
public boolean addCard(Card c)
|
||||||
|
{
|
||||||
|
return CardFactoryUtil.canTarget(card, c)
|
||||||
|
&& (CardUtil.getColors(c).contains(Constant.Color.Black)
|
||||||
|
|| CardUtil.getColors(c).contains(Constant.Color.Red));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (human.size() != 0)
|
||||||
|
{
|
||||||
|
setTargetCard(CardFactoryUtil.AI_getMostExpensivePermanent(human, card, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean canPlayAI()
|
||||||
|
{
|
||||||
|
PlayerZone hplay = AllZone.getZone(Constant.Zone.Play, Constant.Player.Human);
|
||||||
|
CardList human = new CardList(hplay.getCards());
|
||||||
|
human = human.filter(new CardListFilter()
|
||||||
|
{
|
||||||
|
public boolean addCard(Card c)
|
||||||
|
{
|
||||||
|
return CardFactoryUtil.canTarget(card, c)
|
||||||
|
&& (CardUtil.getColors(c).contains(Constant.Color.Black)
|
||||||
|
|| CardUtil.getColors(c).contains(Constant.Color.Red));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return human.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
};//ability
|
||||||
|
|
||||||
|
Input target = new Input()
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = -7279903055386088569L;
|
||||||
|
public void showMessage()
|
||||||
|
{
|
||||||
|
AllZone.Display.showMessage("Select target black or red permanent for " + card);
|
||||||
|
ButtonUtil.enableOnlyCancel();
|
||||||
|
}
|
||||||
|
public void selectButtonCancel() {stop();}
|
||||||
|
public void selectCard(Card crd, PlayerZone zone)
|
||||||
|
{
|
||||||
|
if(zone.is(Constant.Zone.Play) && CardFactoryUtil.canTarget(card, crd)
|
||||||
|
&& (CardUtil.getColors(crd).contains(Constant.Color.Black)
|
||||||
|
|| CardUtil.getColors(crd).contains(Constant.Color.Red)))
|
||||||
|
{
|
||||||
|
spell.setTargetCard(crd);
|
||||||
|
stopSetNext(new Input_PayManaCost(spell));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};//Input
|
||||||
|
spell.setBeforePayMana(target);
|
||||||
|
card.clearSpellAbility();
|
||||||
|
card.addSpellAbility(spell);
|
||||||
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
// Cards with Cycling abilities
|
// Cards with Cycling abilities
|
||||||
// -1 means keyword "Cycling" not found
|
// -1 means keyword "Cycling" not found
|
||||||
if (hasKeyword(card, "Cycling") != -1)
|
if (hasKeyword(card, "Cycling") != -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user