mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
*Added Tidal Courier and Enlistment Officer.
*Merged Goblin Ringleader,Grave Defiler,Tidal Courier,Sylvan Messenger and Enlistment Officer into one code block.
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
#Forge
|
||||||
|
#Thu Sep 30 22:26:24 CEST 2010
|
||||||
|
gui.laf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel
|
||||||
|
AI.stack.land=false
|
||||||
|
gui.new=true
|
||||||
|
stack.offset=tiny
|
||||||
|
card.images.size=medium
|
||||||
|
card.overlay=true
|
||||||
|
card.scale.larger.than.original=true
|
||||||
|
stack.max.size=3
|
||||||
|
gui.laf.fonts=false
|
||||||
|
loss.condition.milling=true
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ Text:no text
|
|||||||
PT:2/1
|
PT:2/1
|
||||||
K:Haste
|
K:Haste
|
||||||
K:Infect
|
K:Infect
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/blackcleave_goblin.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/grave_defiler.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -2689,57 +2689,6 @@ public class CardFactory_Creatures {
|
|||||||
card.addComesIntoPlayCommand(intoPlay);
|
card.addComesIntoPlayCommand(intoPlay);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
|
||||||
else if(cardName.equals("Goblin Ringleader")) {
|
|
||||||
final SpellAbility ability = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
PlayerZone libraryZone = AllZone.getZone(Constant.Zone.Library, card.getController());
|
|
||||||
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, card.getController());
|
|
||||||
|
|
||||||
//get top 4 cards of the library
|
|
||||||
CardList top = new CardList();
|
|
||||||
Card[] library = libraryZone.getCards();
|
|
||||||
for(int i = 0; i < 4 && i < library.length; i++)
|
|
||||||
top.add(library[i]);
|
|
||||||
|
|
||||||
//put top 4 cards on bottom of library
|
|
||||||
for(int i = 0; i < top.size(); i++) {
|
|
||||||
libraryZone.remove(top.get(i));
|
|
||||||
libraryZone.add(top.get(i));
|
|
||||||
}
|
|
||||||
|
|
||||||
CardList goblin = top.getType("Goblin");
|
|
||||||
|
|
||||||
for(int i = 0; i < goblin.size(); i++)
|
|
||||||
AllZone.GameAction.moveTo(hand, goblin.get(i));
|
|
||||||
|
|
||||||
if (card.getController().equals(Constant.Player.Computer))
|
|
||||||
{
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("<html><b>");
|
|
||||||
for (Card c:top) {
|
|
||||||
sb.append(c.getName());
|
|
||||||
sb.append("<br>");
|
|
||||||
}
|
|
||||||
sb.append("</b></html>");
|
|
||||||
JOptionPane.showMessageDialog(null, sb.toString(), "Computer reveals:", JOptionPane.INFORMATION_MESSAGE);
|
|
||||||
}
|
|
||||||
}//resolve()
|
|
||||||
};//SpellAbility
|
|
||||||
Command intoPlay = new Command() {
|
|
||||||
private static final long serialVersionUID = -7538870520237796620L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
AllZone.Stack.add(ability);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ability.setStackDescription("Goblin Ringleader - reveal the top four cards of your library. Put all Goblin cards revealed this way into your hand and the rest on the bottom of your library.");
|
|
||||||
card.addComesIntoPlayCommand(intoPlay);
|
|
||||||
}//*************** END ************ END **************************
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Skirk Prospector")) {
|
else if(cardName.equals("Skirk Prospector")) {
|
||||||
final Ability_Mana ability = new Ability_Mana(card, "Sacrifice a Goblin: Add R") {
|
final Ability_Mana ability = new Ability_Mana(card, "Sacrifice a Goblin: Add R") {
|
||||||
@@ -2789,7 +2738,34 @@ public class CardFactory_Creatures {
|
|||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Sylvan Messenger")) {
|
else if(cardName.equals("Sylvan Messenger")
|
||||||
|
|| cardName.equals("Enlistment Officer")
|
||||||
|
|| cardName.equals("Tidal Courier")
|
||||||
|
|| cardName.equals("Goblin Ringleader")
|
||||||
|
|| cardName.equals("Grave Defiler")) {
|
||||||
|
|
||||||
|
final String[] typeToGet = {""};
|
||||||
|
if(card.getName().equals("Sylvan Messenger"))
|
||||||
|
{
|
||||||
|
typeToGet[0] = "Elf";
|
||||||
|
}
|
||||||
|
else if(card.getName().equals("Enlistment Officer"))
|
||||||
|
{
|
||||||
|
typeToGet[0] = "Soldier";
|
||||||
|
}
|
||||||
|
else if(card.getName().equals("Tidal Courier"))
|
||||||
|
{
|
||||||
|
typeToGet[0] = "Merfolk";
|
||||||
|
}
|
||||||
|
else if(card.getName().equals("Grave Defiler"))
|
||||||
|
{
|
||||||
|
typeToGet[0] = "Zombie";
|
||||||
|
}
|
||||||
|
else if(card.getName().equals("Goblin Ringleader"))
|
||||||
|
{
|
||||||
|
typeToGet[0] = "Goblin";
|
||||||
|
}
|
||||||
|
|
||||||
final SpellAbility ability = new Ability(card, "0") {
|
final SpellAbility ability = new Ability(card, "0") {
|
||||||
@Override
|
@Override
|
||||||
public void resolve() {
|
public void resolve() {
|
||||||
@@ -2808,10 +2784,10 @@ public class CardFactory_Creatures {
|
|||||||
libraryZone.add(top.get(i));
|
libraryZone.add(top.get(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
CardList elf = top.getType("Elf");
|
CardList typeLimitedTop = top.getType(typeToGet[0]);
|
||||||
|
|
||||||
for(int i = 0; i < elf.size(); i++)
|
for(int i = 0; i < typeLimitedTop.size(); i++)
|
||||||
AllZone.GameAction.moveTo(hand, elf.get(i));
|
AllZone.GameAction.moveTo(hand, typeLimitedTop.get(i));
|
||||||
|
|
||||||
if (card.getController().equals(Constant.Player.Computer))
|
if (card.getController().equals(Constant.Player.Computer))
|
||||||
{
|
{
|
||||||
@@ -2833,7 +2809,7 @@ public class CardFactory_Creatures {
|
|||||||
AllZone.Stack.add(ability);
|
AllZone.Stack.add(ability);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ability.setStackDescription("Sylvan Messenger - reveal the top four cards of your library. Put all Elf cards revealed this way into your hand and the rest on the bottom of your library.");
|
ability.setStackDescription(cardName + " - reveal the top four cards of your library. Put all " + typeToGet[0] + " cards revealed this way into your hand and the rest on the bottom of your library.");
|
||||||
card.addComesIntoPlayCommand(intoPlay);
|
card.addComesIntoPlayCommand(intoPlay);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
@@ -18754,45 +18730,6 @@ public class CardFactory_Creatures {
|
|||||||
|
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
|
||||||
else if(cardName.equals("Grave Defiler")) {
|
|
||||||
final SpellAbility ability = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
PlayerZone libraryZone = AllZone.getZone(Constant.Zone.Library, card.getController());
|
|
||||||
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, card.getController());
|
|
||||||
|
|
||||||
//get top 4 cards of the library
|
|
||||||
CardList top = new CardList();
|
|
||||||
Card[] library = libraryZone.getCards();
|
|
||||||
for(int i = 0; i < 4 && i < library.length; i++)
|
|
||||||
top.add(library[i]);
|
|
||||||
|
|
||||||
//put top 4 cards on bottom of library
|
|
||||||
for(int i = 0; i < top.size(); i++) {
|
|
||||||
libraryZone.remove(top.get(i));
|
|
||||||
libraryZone.add(top.get(i));
|
|
||||||
}
|
|
||||||
|
|
||||||
CardList zombies = top.getType("Zombie");
|
|
||||||
|
|
||||||
for(int i = 0; i < zombies.size(); i++)
|
|
||||||
AllZone.GameAction.moveTo(hand, zombies.get(i));
|
|
||||||
}//resolve()
|
|
||||||
};//SpellAbility
|
|
||||||
Command intoPlay = new Command() {
|
|
||||||
private static final long serialVersionUID = -8899812490387286816L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
AllZone.Stack.add(ability);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ability.setStackDescription("When Grave Defiler enters the battlefield, reveal the top four cards of your library. Put all Zombie cards revealed this way into your hand and the rest on the bottom of your library.");
|
|
||||||
card.addComesIntoPlayCommand(intoPlay);
|
|
||||||
}//*************** END ************ END **************************
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if (cardName.equals("Kargan Dragonlord"))
|
else if (cardName.equals("Kargan Dragonlord"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user