diff --git a/res/card-pictures.txt b/res/card-pictures.txt index 649da91055f..69a8b366cbe 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 +goblin_offensive.jpg http://www.wizards.com/global/images/magic/general/goblin_offensive.jpg stream_of_life.jpg http://www.wizards.com/global/images/magic/general/stream_of_life.jpg vitalizing_cascade.jpg http://www.wizards.com/global/images/magic/general/vitalizing_cascade.jpg savage_twister.jpg http://www.wizards.com/global/images/magic/general/savage_twister.jpg diff --git a/res/cards.txt b/res/cards.txt index 1f2dfd57277..506cf713783 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,8 @@ +Goblin Offensive +X 1 R R +Sorcery +no text + Stream of Life X G Sorcery diff --git a/src/forge/CardFactory.java b/src/forge/CardFactory.java index 3bbfc93f81e..0fc35e26372 100644 --- a/src/forge/CardFactory.java +++ b/src/forge/CardFactory.java @@ -17469,6 +17469,41 @@ public class CardFactory implements NewConstants { } //*************** END ************ END ************************** + + //*************** START *********** START ************************** + else if(cardName.equals("Goblin Offensive")) + { + final SpellAbility spell = new Spell(card){ + private static final long serialVersionUID = -8830760963758230870L; + + public void resolve() + { + for (int i = 0; i < card.getXManaCostPaid(); i ++) + { + makeToken(); + } + card.setXManaCostPaid(0); + } + + public void makeToken() + { + CardFactoryUtil.makeToken("Goblin", "R 1 1 Goblin", card, "R", new String[]{"Creature", "Goblin"}, 1, 1, new String[] {""}); + } + + public boolean canPlayAI() + { + final int maxX = ComputerUtil.getAvailableMana().size() - 3; + return maxX > 2; + } + }; + spell.setDescription("Put X 1/1 red Goblin creature tokens onto the battlefield."); + spell.setStackDescription("Goblin Offensive - put X 1/1 red Goblin creature tokens onto the battlefield."); + + card.clearSpellAbility(); + card.addSpellAbility(spell); + } + //*************** END ************ END ************************** + // Cards with Cycling abilities // -1 means keyword "Cycling" not found if(hasKeyword(card, "Cycling") != -1) {