mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Added Beached As' Demonic Consultation code and LQ pic url.
This commit is contained in:
@@ -38,6 +38,7 @@ 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_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_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
|
snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.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
|
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
|
symbiotic_wurm.jpg http://www.wizards.com/global/images/magic/general/symbiotic_wurm.jpg
|
||||||
windfall.jpg http://www.wizards.com/global/images/magic/general/windfall.jpg
|
windfall.jpg http://www.wizards.com/global/images/magic/general/windfall.jpg
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
Demonic Consultation
|
||||||
|
B
|
||||||
|
Instant
|
||||||
|
Name a card. Exile the top six cards of your library, then reveal cards from the top of your library until you reveal the named card. Put that card into your hand and exile all other cards revealed this way.
|
||||||
|
|
||||||
Stitch Together
|
Stitch Together
|
||||||
B B
|
B B
|
||||||
Sorcery
|
Sorcery
|
||||||
|
|||||||
@@ -20054,6 +20054,63 @@ public class CardFactory implements NewConstants {
|
|||||||
spell.setBeforePayMana(target);
|
spell.setBeforePayMana(target);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
//*************** START *********** START **************************
|
||||||
|
else if(cardName.equals("Demonic Consultation")) {
|
||||||
|
final SpellAbility spell = new Spell(card) {
|
||||||
|
private static final long serialVersionUID = 1481101852928051519L;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void resolve() {
|
||||||
|
String player = AllZone.Phase.getActivePlayer();
|
||||||
|
PlayerZone PlayerHand = AllZone.getZone(Constant.Zone.Hand, player);
|
||||||
|
PlayerZone RFG = AllZone.getZone(Constant.Zone.Removed_From_Play , player);
|
||||||
|
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, player);
|
||||||
|
CardList libList = new CardList(lib.getCards());
|
||||||
|
final String[] input = new String[1];
|
||||||
|
input[0] = JOptionPane.showInputDialog(null, "Which card?", "Pick card", JOptionPane.QUESTION_MESSAGE);
|
||||||
|
|
||||||
|
for(int i = 0; i < 7; i++) {
|
||||||
|
Card c = libList.get(i);
|
||||||
|
lib.remove(c);
|
||||||
|
RFG.add(c);
|
||||||
|
}
|
||||||
|
|
||||||
|
int max = libList.size();
|
||||||
|
int stop = 0;
|
||||||
|
for(int i = 0; i < max; i++) {
|
||||||
|
Card c = libList.get(i);
|
||||||
|
if(c.getName().equals(input[0])) {
|
||||||
|
if(stop == 0) {
|
||||||
|
AllZone.GameAction.moveTo(PlayerHand, c);
|
||||||
|
stop = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if(stop == 0) {
|
||||||
|
lib.remove(c);
|
||||||
|
RFG.add(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canPlay() {
|
||||||
|
PlayerZone library = AllZone.getZone(Constant.Zone.Library, card.getController());
|
||||||
|
|
||||||
|
return library.getCards().length > 6
|
||||||
|
&& AllZone.Phase.getActivePlayer().equals(card.getController())
|
||||||
|
&& !AllZone.Phase.getPhase().equals("End of Turn") && super.canPlay();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canPlayAI() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};//SpellAbility
|
||||||
|
card.clearSpellAbility();
|
||||||
|
spell.setStackDescription("Name a card. Exile the top six cards of your library, then reveal cards from the top of your library until you reveal the named card. Put that card into your hand and exile all other cards revealed this way");
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user