- Added Awakening Zone.

This commit is contained in:
jendave
2011-08-06 04:09:41 +00:00
parent cadb7ed915
commit 0e9c46ca6a
4 changed files with 54 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
Awakening Zone
2 G
Enchantment
At the beginning of your upkeep, you may put a 0/1 colorless Eldrazi Spawn creature token onto the battlefield. It has "Sacrifice this creature: Add 1 to your mana pool."
Chromatic Star Chromatic Star
1 1
Artifact Artifact

View File

@@ -1813,6 +1813,16 @@ public class CardFactoryUtil {
return enchant; return enchant;
}//enPumpCurse_Enchant() }//enPumpCurse_Enchant()
public static Ability_Mana getEldraziSpawnAbility(final Card c)
{
SpellAbility mana = new Ability_Mana(c, "Sacrifice CARDNAME: Add 1 to your mana pool.") {
private static final long serialVersionUID = 2384540533244132975L;
};
return (Ability_Mana)mana;
}
public static Command entersBattleFieldWithCounters(final Card c, final Counters type, final int n) { public static Command entersBattleFieldWithCounters(final Card c, final Counters type, final int n) {
Command addCounters = new Command() { Command addCounters = new Command() {
private static final long serialVersionUID = 4825430555490333062L; private static final long serialVersionUID = 4825430555490333062L;

View File

@@ -68,6 +68,7 @@ public class GameActionUtil {
upkeep_Dragon_Broodmother(); //put this before bitterblossom and mycoloth, so that they will resolve FIRST upkeep_Dragon_Broodmother(); //put this before bitterblossom and mycoloth, so that they will resolve FIRST
upkeep_Bitterblossom(); upkeep_Bitterblossom();
upkeep_Goblin_Assault(); upkeep_Goblin_Assault();
upkeep_Awakening_Zone();
upkeep_Battle_of_Wits(); upkeep_Battle_of_Wits();
upkeep_Epic_Struggle(); upkeep_Epic_Struggle();
upkeep_Near_Death_Experience(); upkeep_Near_Death_Experience();
@@ -6530,7 +6531,33 @@ public class GameActionUtil {
AllZone.Stack.add(ability); AllZone.Stack.add(ability);
}// for }// for
}// upkeep_Bitterblossom() }// upkeep_Goblin_Assault()
private static void upkeep_Awakening_Zone() {
final String player = AllZone.Phase.getActivePlayer();
PlayerZone playZone = AllZone.getZone(Constant.Zone.Play, player);
CardList list = new CardList(playZone.getCards());
list = list.getName("Awakening Zone");
Ability ability;
for(int i = 0; i < list.size(); i++) {
final Card crd = list.get(i);
ability = new Ability(list.get(i), "0") {
@Override
public void resolve() {
CardList cl = CardFactoryUtil.makeToken("Eldrazi Spawn", "C 0 1 Eldrazi Spawn", crd, "C", new String[] {
"Creature", "Eldrazi", "Spawn"}, 0, 1, new String[] {"Sacrifice CARDNAME: Add 1 to your mana pool."});
for (Card c:cl)
c.addSpellAbility(CardFactoryUtil.getEldraziSpawnAbility(c));
}// resolve()
};// Ability
ability.setStackDescription("Awakening Zone - " + player +
" puts a 0/1 colorless Eldrazi Spawn creature token onto the battlefield.");
AllZone.Stack.add(ability);
}// for
}// upkeep_Awakening_Zone()
private static void upkeep_Masticore() { private static void upkeep_Masticore() {
final String player = AllZone.Phase.getActivePlayer(); final String player = AllZone.Phase.getActivePlayer();
@@ -8637,6 +8664,7 @@ public class GameActionUtil {
}// execute() }// execute()
}; //Goblin Assault }; //Goblin Assault
public static Command Mobilization = new Command() { public static Command Mobilization = new Command() {
private static final long serialVersionUID = 2005579284163773044L; private static final long serialVersionUID = 2005579284163773044L;

View File

@@ -130,7 +130,7 @@ public class CardDetailPanel extends JPanel implements CardContainer {
//displays keywords that have dots in them a little better: //displays keywords that have dots in them a little better:
regex = "\\., "; regex = "\\., ";
text = text.replaceAll(regex,"\r\n"); text = text.replaceAll(regex,".\r\n");
area.append(text); area.append(text);
} }
@@ -145,6 +145,14 @@ public class CardDetailPanel extends JPanel implements CardContainer {
} }
} }
//top revealed
if(card.getKeyword().contains("Play with the top card of your library revealed.") &&
!card.getTopCardName().equals(""))
{
area.append("\r\nTop card: ");
area.append(card.getTopCardName());
}
//chosen type //chosen type
if(card.getChosenType() != "") { if(card.getChosenType() != "") {
if(area.length() != 0) area.append("\n"); if(area.length() != 0) area.append("\n");