- Added Nut Collector.

This commit is contained in:
jendave
2011-08-06 05:11:25 +00:00
parent cd1f71c22f
commit 9e4131de0d
3 changed files with 88 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
Nut Collector
5 G
Creature Human Druid
At the beginning of your upkeep, you may put a 1/1 green Squirrel creature token onto the battlefield.
1/1
Phyrexian Plaguelord
3 B B
Creature Carrier

View File

@@ -79,6 +79,7 @@ public class GameActionUtil {
upkeep_Bitterblossom();
upkeep_Goblin_Assault();
upkeep_Awakening_Zone();
upkeep_Nut_Collector();
// Win / Lose
final String player = AllZone.Phase.getActivePlayer();
@@ -8188,6 +8189,30 @@ public class GameActionUtil {
}// for
}// upkeep_Awakening_Zone()
private static void upkeep_Nut_Collector() {
final String player = AllZone.Phase.getActivePlayer();
PlayerZone playZone = AllZone.getZone(Constant.Zone.Play, player);
CardList list = new CardList(playZone.getCards());
list = list.getName("Nut Collector");
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() {
CardFactoryUtil.makeToken("Squirrel", "G 1 1 Squirrel", crd, "G", new String[] {
"Creature", "Squirrel"}, 1, 1, new String[] {""});
}// resolve()
};// Ability
ability.setStackDescription("Nut Collector - " + player +
" puts a 1/1 green Squirrel creature token onto the battlefield.");
AllZone.Stack.add(ability);
}// for
}// upkeep_Nut_Collector()
private static void upkeep_Masticore() {
final String player = AllZone.Phase.getActivePlayer();
PlayerZone playZone = AllZone.getZone(Constant.Zone.Play, player);
@@ -18648,6 +18673,61 @@ public class GameActionUtil {
}// execute()
}; // Muraganda_Petroglyphs
public static Command Nut_Collector = new Command()
{
private static final long serialVersionUID = 4873843480453112825L;
CardList gloriousAnthemList = new CardList();
public void execute() {
CardList list = gloriousAnthemList;
Card c;
// reset all cards in list - aka "old" cards
for(int i = 0; i < list.size(); i++) {
c = list.get(i);
c.addSemiPermanentAttackBoost(-2);
c.addSemiPermanentDefenseBoost(-2);
}
// add +2/+2 to vanilla cards
list.clear();
PlayerZone[] zone = getZone("Nut Collector");
// for each zone found add +2/+2 to each vanilla card
for(int outer = 0; outer < zone.length; outer++) {
PlayerZone z = zone[outer];
String player = z.getPlayer();
if (AllZoneUtil.getPlayerGraveyard(player).size() >= 7)
{
// CardList creature = new CardList(zone[outer].getCards());
CardList creature = new CardList();
creature.addAll(AllZone.Human_Play.getCards());
creature.addAll(AllZone.Computer_Play.getCards());
creature = creature.getType("Creature");
creature = creature.filter(new CardListFilter()
{
public boolean addCard(Card crd)
{
return crd.getType().contains("Squirrel") || crd.getKeyword().contains("Changeling");
}
});
for(int i = 0; i < creature.size(); i++) {
c = creature.get(i);
c.addSemiPermanentAttackBoost(2);
c.addSemiPermanentDefenseBoost(2);
gloriousAnthemList.add(c);
}// for inner
}//if Threshold
}// for outer
}//execute
}; //nut_collector
public static Command Meddling_Mage = new Command() {
private static final long serialVersionUID = 738264163993370439L;
CardList gloriousAnthemList = new CardList();
@@ -19067,6 +19147,7 @@ public class GameActionUtil {
commands.put("Chainer", Chainer);
commands.put("Eldrazi_Monument", Eldrazi_Monument);
commands.put("Muraganda_Petroglyphs", Muraganda_Petroglyphs);
commands.put("Nut_Collector", Nut_Collector);
commands.put("Engineered_Plague", Engineered_Plague);
commands.put("Night_of_Souls_Betrayal", Night_of_Souls_Betrayal);

View File

@@ -145,6 +145,7 @@ public class StaticEffects
cardToEffectsList.put("Chainer, Dementia Master", new String[] {"Chainer"});
cardToEffectsList.put("Eldrazi Monument", new String[] {"Eldrazi_Monument"});
cardToEffectsList.put("Muraganda Petroglyphs", new String[] {"Muraganda_Petroglyphs"});
cardToEffectsList.put("Nut Collector", new String[] {"Nut_Collector"});
cardToEffectsList.put("Engineered Plague", new String[] {"Engineered_Plague"});
cardToEffectsList.put("Night of Souls' Betrayal", new String[] {"Night_of_Souls_Betrayal"});
cardToEffectsList.put("Thelonite Hermit", new String[] {"Thelonite_Hermit"});