diff --git a/res/card-pictures.txt b/res/card-pictures.txt index 38cb4d3a074..e9d65de714c 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 +arc_slogger.jpg http://www.wizards.com/global/images/magic/general/arc_slogger.jpg fireball.jpg http://www.wizards.com/global/images/magic/general/fireball.jpg inferno.jpg http://www.wizards.com/global/images/magic/general/inferno.jpg guan_yus_1000_li_march.jpg http://www.wizards.com/global/images/magic/general/guan_yus_1000_li_march.jpg diff --git a/res/cards.txt b/res/cards.txt index 2cff51cef68..487099c16e2 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,9 @@ +Arc-Slogger +3 R R +Creature Beast +R, Exile the top ten cards of your library: Arc-Slogger deals 2 damage to target creature or player. +4/5 + Fireball X R Sorcery diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index 1e954cd3584..0263f41133a 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -17931,6 +17931,46 @@ public class CardFactory_Creatures { ability.setBeforePayMana(target); }//*************** END ************ END ************************** + //*************** START *********** START ************************** + if(cardName.equals("Arc-Slogger")) { + /* + * R, Exile the top ten cards of your library: Arc-Slogger deals + * 2 damage to target creature or player. + */ + final SpellAbility ability = new Ability(card, "R") { + @Override + public boolean canPlayAI() { + PlayerZone lib = AllZone.getZone(Constant.Zone.Library, Constant.Player.Computer); + int life = AllZone.Human_Life.getLife(); + if(lib.size() > 10 && life <=2) { + return true; + } + else{ + return false; + } + } + @Override + public void resolve() { + int damage = 2; + PlayerZone lib = AllZone.getZone(Constant.Zone.Library, card.getController()); + int max = Math.min(lib.size(), 10); + for(int i = 0; i < max; i++) { + //remove the top card 10 times + AllZone.GameAction.removeFromGame(lib.get(0)); + } + if(getTargetCard() != null) { + if(AllZone.GameAction.isCardInPlay(getTargetCard()) + && CardFactoryUtil.canTarget(card, getTargetCard())) { + AllZone.GameAction.addDamage(getTargetCard(), card, damage); + } + } else AllZone.GameAction.addDamage(getTargetPlayer(), card, damage); + + } + }; + card.addSpellAbility(ability); + ability.setBeforePayMana(CardFactoryUtil.input_targetCreaturePlayer(ability, true, false)); + }//*************** END ************ END ************************** + // Cards with Cycling abilities // -1 means keyword "Cycling" not found if(shouldCycle(card) != -1) {