diff --git a/res/card-pictures.txt b/res/card-pictures.txt index 2710aa62c6e..54ecd38dd76 100644 --- a/res/card-pictures.txt +++ b/res/card-pictures.txt @@ -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_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 +reinforcements.jpg http://www.wizards.com/global/images/magic/general/reinforcements.jpg rampant_growth.jpg http://www.wizards.com/global/images/magic/general/rampant_growth.jpg kjeldoran_outpost.jpg http://www.wizards.com/global/images/magic/general/kjeldoran_outpost.jpg kor_firewalker.jpg http://www.wizards.com/global/images/magic/general/kor_firewalker.jpg diff --git a/res/cards.txt b/res/cards.txt index bd75422eb97..ac44408f67e 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,13 @@ +Epic Struggle +2 G G +Enchantment +At the beginning of your upkeep, if you control twenty or more creatures, you win the game. + +Reinforcements +W +Instant +Put up to three target creature cards from your graveyard on top of your library. + Funeral Charm B Instant diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 817796fc85b..f33e24a0204 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -68,6 +68,7 @@ public class GameActionUtil { upkeep_Bitterblossom(); upkeep_Goblin_Assault(); upkeep_Battle_of_Wits(); + upkeep_Epic_Struggle(); upkeep_Helix_Pinnacle(); upkeep_Barren_Glory(); upkeep_Felidar_Sovereign(); @@ -6083,6 +6084,37 @@ public class GameActionUtil { }// if }// upkeep_Battle_of_Wits + private static void upkeep_Epic_Struggle() { + final String player = AllZone.Phase.getActivePlayer(); + PlayerZone playZone = AllZone.getZone(Constant.Zone.Play, player); + + CardList list = new CardList(playZone.getCards()); + list = list.getName("Epic Struggle"); + + CardList creats = new CardList(playZone.getCards()); + creats = creats.getType("Creature"); + + if(0 < list.size() && creats.size() >= 20) { + Ability ability = new Ability(list.get(0), "0") { + @Override + public void resolve() { + String opponent = AllZone.GameAction.getOpponent(player); + PlayerLife life = AllZone.GameAction.getPlayerLife(opponent); + + int gameNumber = 0; + if (Constant.Runtime.WinLose.getWin()==1) + gameNumber = 1; + Constant.Runtime.WinLose.setWinMethod(gameNumber,"Epic Struggle"); + + life.setLife(0); + } + };// Ability + + ability.setStackDescription("Epic Struggle - " + player + " wins the game"); + AllZone.Stack.add(ability); + }// if + }// upkeep_Epic_Struggle + private static void upkeep_Helix_Pinnacle() { final String player = AllZone.Phase.getActivePlayer(); PlayerZone playZone = AllZone.getZone(Constant.Zone.Play, player);