- Added Fauna Shaman (untested, just copied code from Survival of the Fittest).

This commit is contained in:
jendave
2011-08-06 05:28:10 +00:00
parent 5afb9965ab
commit 317d11c89c
2 changed files with 62 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
Fauna Shaman
1 G
Creature Elf Shaman
no text
2/2
Arrogant Wurm Arrogant Wurm
3 G G 3 G G
Creature Wurm Creature Wurm

View File

@@ -20705,6 +20705,62 @@ public class CardFactory_Creatures {
} }
//*************** END ************ END ************************** //*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Fauna Shaman")) {
SpellAbility ability = new Ability_Tap(card, "G") {
private static final long serialVersionUID = 5191841182000183907L;
@Override
public void resolve() {
String player = card.getController();
if(player.equals(Constant.Player.Human)) humanResolve();
else computerResolve();
}//resolve()
public void humanResolve() {
CardList handCreatures = new CardList(AllZone.Human_Hand.getCards());
handCreatures = handCreatures.getType("Creature");
if(handCreatures.size() == 0) return;
Object discard = AllZone.Display.getChoiceOptional("Select Creature to discard",
handCreatures.toArray());
if(discard != null) {
CardList creatures = new CardList(AllZone.Human_Library.getCards());
creatures = creatures.getType("Creature");
if(creatures.size() != 0) {
Object check = AllZone.Display.getChoiceOptional("Select Creature",
creatures.toArray());
if(check != null) {
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, card.getController());
AllZone.GameAction.moveTo(hand, (Card) check);
}
AllZone.GameAction.shuffle(Constant.Player.Human);
}
AllZone.GameAction.discard((Card) discard);
}
}
public void computerResolve() {
//TODO
}
@Override
public boolean canPlayAI() {
return false;
}
};//SpellAbility
//card.clearSpellAbility();
ability.setDescription("Tap, G: Discard a creature card: Search your library for a creature card, reveal that card, and put it into your hand. Then shuffle your library.");
ability.setStackDescription(cardName + " - search for a creature card and put into hand");
card.addSpellAbility(ability);
}//*************** END ************ END **************************
// Cards with Cycling abilities // Cards with Cycling abilities
// -1 means keyword "Cycling" not found // -1 means keyword "Cycling" not found