1) Added Mnemonic Wall to the Gravedigger and Cadaver Imp card object.

2) Added 2 LQ pic urls.
This commit is contained in:
jendave
2011-08-06 04:38:05 +00:00
parent 5bf7b30296
commit 7ba5d5465b
3 changed files with 27 additions and 4 deletions

View File

@@ -38,6 +38,8 @@ snow_covered_mountain.jpg http://www.wizards.com/global/images/magic/gene
snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg
snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
mnemonic_wall.jpg http://www.wizards.com/global/images/magic/general/mnemonic_wall.jpg
cadaver_imp.jpg http://www.wizards.com/global/images/magic/general/cadaver_imp.jpg
demonic_consultation.jpg http://www.wizards.com/global/images/magic/general/demonic_consultation.jpg
stitch_together.jpg http://www.wizards.com/global/images/magic/general/stitch_together.jpg
symbiotic_wurm.jpg http://www.wizards.com/global/images/magic/general/symbiotic_wurm.jpg

View File

@@ -1,3 +1,10 @@
Mnemonic Wall
4 U
Creature Wall
When Mnemonic Wall enters the battlefield, you may return target instant or sorcery card from your graveyard to your hand.
0/4
Defender
Elvish Piper
3 G
Creature Elf Shaman

View File

@@ -3588,9 +3588,8 @@ public class CardFactory_Creatures {
});
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Gravedigger") || cardName.equals("Cadaver Imp")) {
else if(cardName.equals("Gravedigger") || cardName.equals("Cadaver Imp") || cardName.equals("Mnemonic Wall")) {
final SpellAbility ability = new Ability(card, "0") {
@Override
public void resolve() {
@@ -3607,7 +3606,15 @@ public class CardFactory_Creatures {
public void execute() {
PlayerZone grave = AllZone.getZone(Constant.Zone.Graveyard, card.getController());
CardList list = new CardList(grave.getCards());
list = list.getType("Creature");
list = list.filter(new CardListFilter() {
public boolean addCard(Card crd) {
return ((card.getName().equals("Gravedigger") || card.getName().equals("Cadaver Imp")) && crd.isCreature())
||
(card.getName().equals("Mnemonic Wall") && (crd.isInstant() || crd.isSorcery()));
}
});
// list = list.getType("Creature");
if(list.isEmpty()) return;
@@ -3620,7 +3627,14 @@ public class CardFactory_Creatures {
}//if
else//computer
{
Card best = CardFactoryUtil.AI_getBestCreature(list);
Card best = card;
if (card.getName().equals("Gravedigger") || card.getName().equals("Cadaver Imp")) {
best = CardFactoryUtil.AI_getBestCreature(list);
} else {
// compy will select a random Instant or Sorcery
list.shuffle();
best = list.get(0);
}
ability.setTargetCard(best);
AllZone.Stack.add(ability);
}