diff --git a/Mage.Client/src/main/java/mage/client/util/sets/ConstructedFormats.java b/Mage.Client/src/main/java/mage/client/util/sets/ConstructedFormats.java index ec5c7ad92e..cc3c34e4f7 100644 --- a/Mage.Client/src/main/java/mage/client/util/sets/ConstructedFormats.java +++ b/Mage.Client/src/main/java/mage/client/util/sets/ConstructedFormats.java @@ -24,7 +24,7 @@ public class ConstructedFormats { private static final String[] constructedFormats = { ALL, STANDARD, EXTENDED, MODERN, "Commander 2013 Edition", - "* Theros Block", "Theros", + "* Theros Block", "Born of the Gods", "Theros", "Magic 2014", "Modern Masters", "* Return to Ravnica Block", "Dragon's Maze", "Gatecrash", "Return to Ravnica", @@ -70,7 +70,10 @@ public class ConstructedFormats { public static List getSetsByFormat(String format) { if (format.equals("* Theros Block")) { - return Arrays.asList("THS"); + return Arrays.asList("THS", "BNG"); + } + if (format.equals("Born of the Gods")) { + return Arrays.asList("BNG"); } if (format.equals("Theros")) { return Arrays.asList("THS"); diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/GathererSets.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/GathererSets.java index 2657c74aff..9d5cd0551a 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/GathererSets.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/GathererSets.java @@ -41,7 +41,7 @@ public class GathererSets implements Iterable { "ISD", "DKA", "AVR", "RTR", "GTC", "DGM", "MMA", - "THS"}; + "THS", "BNG"}; private static final HashMap symbolsReplacements = new HashMap(); static { diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/MagicCardsImageSource.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/MagicCardsImageSource.java index 3ce332c21f..954c05c640 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/MagicCardsImageSource.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/MagicCardsImageSource.java @@ -16,6 +16,7 @@ public class MagicCardsImageSource implements CardImageSource { private static final Map setNameReplacement = new HashMap() { { + put("BGN", "born-of-the-gods"); put("C13", "commander-2013-edition"); put("THS", "theros"); put("M14", "magic-2014"); diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/WizardCardsImageSource.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/WizardCardsImageSource.java index 4e9edf964b..0793617d65 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/WizardCardsImageSource.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/WizardCardsImageSource.java @@ -29,6 +29,7 @@ public class WizardCardsImageSource implements CardImageSource { public WizardCardsImageSource() { sets = new HashMap>(); setsAliases = new HashMap(); + setsAliases.put("BNG", "bornofthegods/cig"); setsAliases.put("C13", "commander2013/cig"); setsAliases.put("THS", "theros/cig"); setsAliases.put("M14", "magic2014coreset/cig"); diff --git a/Mage.Client/src/main/resources/image.url.properties b/Mage.Client/src/main/resources/image.url.properties index 12b2d285c6..5d21c5a8ce 100644 --- a/Mage.Client/src/main/resources/image.url.properties +++ b/Mage.Client/src/main/resources/image.url.properties @@ -59,7 +59,7 @@ drk=dk ptk=p3k gur=guru mpr=mprp -# Remove DGM as sson as the images can be downloaded -ignore.urls=TOK,EMBLEM +# Remove setname as sson as the images can be downloaded +ignore.urls=TOK,EMBLEM,BNG # sets ordered by release time (newest goes first) token.lookup.order=THS,DDL,M14,MMA,DGM,GTC,RTR,M13,AVR,DDI,DKA,ISD,M12,NPH,MBS,SOM,M11,ROE,PVC,WWK,ZEN,M10,GVL,ARB,DVD,CFX,JVC,ALA,EVE,SHM,EVG,MOR,LRW,10E,CLS,CHK \ No newline at end of file diff --git a/Mage.Sets/src/mage/sets/BornOfTheGods.java b/Mage.Sets/src/mage/sets/BornOfTheGods.java new file mode 100644 index 0000000000..39074ffd36 --- /dev/null +++ b/Mage.Sets/src/mage/sets/BornOfTheGods.java @@ -0,0 +1,60 @@ +/* +* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. +* +* Redistribution and use in source and binary forms, with or without modification, are +* permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, this list of +* conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, this list +* of conditions and the following disclaimer in the documentation and/or other materials +* provided with the distribution. +* +* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED +* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR +* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* The views and conclusions contained in the software and documentation are those of the +* authors and should not be interpreted as representing official policies, either expressed +* or implied, of BetaSteward_at_googlemail.com. +*/ + +package mage.sets; + +import java.util.GregorianCalendar; +import mage.cards.ExpansionSet; +import mage.constants.SetType; + +/** + * + * @author LevelX2 + */ +public class BornOfTheGods extends ExpansionSet { + + private static final BornOfTheGods fINSTANCE = new BornOfTheGods(); + + public static BornOfTheGods getInstance() { + return fINSTANCE; + } + + private BornOfTheGods() { + super("Born of the Gods", "BNG", "mage.sets.bornofthegods", new GregorianCalendar(2014, 2, 7).getTime(), SetType.EXPANSION); + this.blockName = "Theros"; + this.parentSet = Theros.getInstance(); + this.hasBasicLands = false; + this.hasBoosters = true; + this.numBoosterLands = 0; + this.numBoosterCommon = 11; + this.numBoosterUncommon = 3; + this.numBoosterRare = 1; + this.ratioBoosterMythic = 8; + } + +} diff --git a/Utils/known-sets.txt b/Utils/known-sets.txt index b0bf6810a6..7bc747dce1 100644 --- a/Utils/known-sets.txt +++ b/Utils/known-sets.txt @@ -84,3 +84,4 @@ Commander 2013 Edition|commander2013| Dragon's Maze|dragonsmaze| Modern Masters|modernmasters| Theros|theros| +Born of the Gods|bornofthegods| diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index bc38d6f936..fc0708cdbd 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -22899,3 +22899,28 @@ Toxic Deluge|Commander 2013 Edition|96|R|{2}{B}|Sorcery|||As an additional cost Vampire Nighthawk|Commander 2013 Edition|97|U|{1}{B}{B}|Creature - Vampire Shaman|2|3|Flying$Deathtouch (Any amount of damage this deals to a creature is enough to destroy it.)$Lifelink (Damage dealt by this creature also causes you to gain that much life.)| Vile Requiem|Commander 2013 Edition|98|U|{2}{B}{B}|Enchantment|||At the beginning of your upkeep, you may put a verse counter on Vile Requiem.${1}{B}, Sacrifice Vile Requiem: Destroy up to X target nonblack creatures, where X is the number of verse counters on Vile Requiem. They can't be regenerated.| Viscera Seer|Commander 2013 Edition|99|C|{B}|Creature - Vampire Wizard|1|1|Sacrifice a creature: Scry 1. (Look at the top card of your library. You may put that card on the bottom of your library.)| +Fated Retribution|Born of the Gods||R|{4}{W}{W}{W}|Instant|||Destroy all creatures and planeswalkers. If it's your turn, scry 2.| +Hero of Iroas|Born of the Gods|17|R|{1}{W}|Creature — Human Soldier|2|2|Aura spells you cast cost {1} less to cast.$Heroic — Whenever you cast a spell that targets Hero of Iroas, put a +1/+1 counter on Hero of Iroas.| +Nyxborn Shieldmate|Born of the Gods|21|C|{W}|Enchantment Creature — Human Soldier|1|2|Bestow {2}{W}$Enchanted creature gets +1/+2.| +Oreskos Sun Guide|Born of the Gods|22|C|{1}{W}|Creature — Cat Monk|2|2|Inspired — Whenever Oreskos Sun Guide becomes untapped, you gain 2 life.| +Silent Sentinel|Born of the Gods|26|R|{5}{W}{W}|Creature — Archon|4|6|Flying$Whenever Silent Sentinel attacks, you may return target enchantment card from your graveyard to the battlefield.| +Arbiter of the Ideal|Born of the Gods|31|R|{4}{U}{U}|Creature — Sphinx|4|5|Flying$Inspired — Whenever Arbiter of the Ideal becomes untapped, reveal the top card of your library. If it's an artifact, creature, or land card, you may put it onto the battlefield with a manifestation counter on it. It's an enchantment in addition to its other types.| +Archetype of Imagination|Born of the Gods|32|U|{4}{U}{U}|Enchantment Creature — Human Wizard|3|2|Creatures you control have flying.$Creatures your opponents control lose flying and can't have or gain flying.| +Ashiok's Adept|Born of the Gods|59|U|{2}{B}|Creature — Human Wizard|1|3|Heroic — Whenever you cast a spell that targets Ashiok's Adept, each opponent discards a card.| +Eater of Hope|Born of the Gods|66|R|{5}{B}{B}|Creature — Demon|6|4|Flying${B}, Sacrifice another creature: Regenerate Eater of Hope.${2}{B}, Sacrifice two other creatures: Destroy target creature.| +Pain Seer|Born of the Gods|80|R|{1}{B}|Creature — Human Wizard|2|2|Inspired — Whenever Pain Seer becomes untapped, reveal the top card of your library and put that card into your hand. You lose life equal to that card's converted mana cost.| +Epiphany Storm|Born of the Gods|91|C|{R}|Enchantment — Aura|||Enchant creature$Enchanted creature has "{R}, {T}, Discard a card: Draw a card."| +Everflame Eidolon|Born of the Gods|92|U|{1}{R}|Enchantment Creature — Spirit|1|1|Bestow {2}{R}${R}: Everflame Eidolon gets +1/+0 until end of turn. If it's an Aura, enchanted creature gets +1/+0 until end of turn instead.$Enchanted creature gets +1/+1.| +Flame-Wreathed Phoenix|Born of the Gods|97|M|{2}{R}{R}|Creature — Phoenix|3|3|Flying$Tribute 2$When Flame-Wreathed Phoenix enters the battlefield, if its tribute wasn't paid, it gains haste and "When this creature dies, return it to its owner's hand."| +Forgestoker Dragon|Born of the Gods|98|R|{4}{R}{R}|Creature — Dragon|5|4|Flying${1}{R}: Forgestoker Dragon deals 1 damage to target creature. That creature can't block this combat. Activate this ability only if Forgestoker Dragon is attacking.| +Pharagax Giant|Born of the Gods|104|C|{4}{R}|Creature — Giant|3|3|Tribute 2 (As this creature enters the battlefield, an opponent of your choice may put 2 +1/+1 counter on it.)$When Pharagax Giant enters the battlefield, if tribute wasn't paid, Pharagax Giant deals 5 damage to each opponent.| +Nessian Wilds Ravager|Born of the Gods|129|R|{4}{G}{G}|Creature — Hydra|6|6|Tribute 6 (As this creature enters the battlefield, an opponent of your choice may put 6 +1/+1 counter on it.)$When Nessian Wilds Ravager enters the battlefield, if tribute wasn't paid, you may have Nessian Wilds Ravager fight another target creature.| +Skyreaping|Born of the Gods|140|U|{1}{G}|Sorcery|||Skyreaping deals damage to each creature with flying equal to your devotion to green.| +Ephara, God of the Polis|Born of the Gods|145|M|{2}{W}{U}|Legendary Enchantment Creature — God|6|5|Indestructible$As long as your devotion to white and blue is less than seven, Ephara isn't a creature.$At the beginning of each upkeep, if you had another creature enter the battlefield under your control last turn, draw a card.| +Kiora, the Crashing Wave|Born of the Gods|149|M|{2}{G}{U}|Planeswalker — Kiora|2|+1: Until your next turn, prevent all damage that would be dealt to and dealt by target permanent an opponent controls.$-1: Draw a card. You may play an additional land this turn.$-5: You get an emblem with "At the beginning of your end step, put a 9/9 blue Kraken creature token onto the battlefield."| +Kiora's Follower|Born of the Gods|150|U|{G}{U}|Creature — Merfolk|2|2|{T}: Untap another target permanent.| +Mogis, God of Slaughter|Born of the Gods|151|M|{2}{B}{R}|Legendary Enchantment Creature — God|7|5|Indestructible$As long as your devotion to black and red is less than seven, Mogis isn't a creature.$At the beginning of each opponent's upkeep, Mogis deals 2 damage to that player unless he or she sacrifices a creature.| +Springleaf Drum|Born of the Gods|162|U|{1}|Artifact|||{T}, Tap an untapped creature you control: Add one mana of any color to your mana pool.| +Temple of Enlightenment|Born of the Gods|163|R||Land|||Temple of Enlightenment enters the battlefield tapped.$When Temple of Enlightenment enters the battlefield, scry 1.${T}: Add {W} or {U} to your mana pool.| +Temple of Malice|Born of the Gods|164|R||Land|||Temple of Malice enters the battlefield tapped.$When Temple of Malice enters the battlefield, scry 1.${T}: Add {B} or {R} to your mana pool.| +Temple of Plenty|Born of the Gods|165|R||Land|||Temple of Plenty enters the battlefield tapped.$When Temple of Plenty enters the battlefield, scry 1.${T}: Add {G} or {W} to your mana pool.| \ No newline at end of file diff --git a/Utils/mtg-sets-data.txt b/Utils/mtg-sets-data.txt index 4dd2a22297..b838de0e28 100644 --- a/Utils/mtg-sets-data.txt +++ b/Utils/mtg-sets-data.txt @@ -18,6 +18,7 @@ Avacyn Restored|AVR| Betrayers of Kamigawa|BOK| Battle Royale Box Set|BRB| Beatdown Box Set|BTD| +Born of the Gods|BNG| Champions of Kamigawa|CHK| Chronicles|CHR| Commander 2013 Edition|C13|