Some generic fixes, also: - Added "Whenever *any text goes here* put into a graveyard from the battlefield,*any text goes here*" keyword. It doesn't do anything, but it notifies the program that the card triggers on whenever a card gets put into a graveyard from the battlefield.

- AEther Spellbomb should be fixed.
This commit is contained in:
jendave
2011-08-06 02:46:47 +00:00
parent 55aa410249
commit 2c739ecf24
7 changed files with 172 additions and 74 deletions

View File

@@ -15511,7 +15511,7 @@ public class CardFactory_Creatures {
}//*************** END ************ END **************************
//*************** START *********** START **************************
if(cardName.equals("Stern Judge"))
else if(cardName.equals("Stern Judge"))
{
final Ability_Tap ability = new Ability_Tap(card)
{
@@ -15547,7 +15547,7 @@ public class CardFactory_Creatures {
//*************** START *********** START **************************
if(cardName.equals("Cackling Imp") || cardName.equals("Blightspeaker"))
else if(cardName.equals("Cackling Imp") || cardName.equals("Blightspeaker"))
{
final Ability_Tap ability = new Ability_Tap(card)
{
@@ -15575,7 +15575,7 @@ public class CardFactory_Creatures {
//*************** START *********** START **************************
if(cardName.equals("Thought Courier"))
else if(cardName.equals("Thought Courier"))
{
final Ability_Tap ability = new Ability_Tap(card)
{
@@ -15592,6 +15592,56 @@ public class CardFactory_Creatures {
ability.setStackDescription("Thought Courier - draw a card, then discard a card.");
ability.setBeforePayMana(new Input_NoCost_TapAbility(ability));
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Elvish Hunter"))
{
final SpellAbility ability = new Ability_Tap(card, "1 G")
{
private static final long serialVersionUID = -560200335562416099L;
public boolean canPlayAI()
{
if(CardFactoryUtil.AI_doesCreatureAttack(card))
return false;
return (getCreature().size() != 0);
}
public void chooseTargetAI()
{
card.tap();
Card target = CardFactoryUtil.AI_getBestCreature(getCreature());
setTargetCard(target);
}
CardList getCreature()
{
CardList list = new CardList(AllZone.Human_Play.getCards());
list = list.filter(new CardListFilter()
{
public boolean addCard(Card c)
{
return c.isCreature() && (! c.getKeyword().contains("This card doesn't untap during your next untap step.")) &&
CardFactoryUtil.canTarget(card, c) && c.isTapped();
}
});
list.remove(card);
return list;
}//getCreature()
public void resolve()
{
if(AllZone.GameAction.isCardInPlay(getTargetCard()) && CardFactoryUtil.canTarget(card, getTargetCard()) )
{
final Card[] creature = new Card[1];
creature[0] = getTargetCard();
creature[0].addExtrinsicKeyword("This card doesn't untap during your next untap step.");
}//if (card is in play)
}//resolve()
};//SpellAbility
card.addSpellAbility(ability);
ability.setDescription("1 G, tap: Target creature doesn't untap during its controller's next untap step.");
ability.setBeforePayMana(CardFactoryUtil.input_targetCreature(ability));
}//*************** END ************ END **************************
// Cards with Cycling abilities