diff --git a/res/card-pictures.txt b/res/card-pictures.txt index dff1c58b864..31e43e4dd41 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 +storm_seeker.jpg http://www.wizards.com/global/images/magic/general/storm_seeker.jpg twiddle.jpg http://www.wizards.com/global/images/magic/general/twiddle.jpg kor_duelist.jpg http://www.wizards.com/global/images/magic/general/kor_duelist.jpg stalking_assassin.jpg http://www.wizards.com/global/images/magic/general/stalking_assassin.jpg diff --git a/res/cards.txt b/res/cards.txt index 3718548e5b8..7568be71875 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,8 @@ +Storm Seeker +3 G +Instant +Storm Seeker deals damage equal to the number of cards in target player's hand to that player. + Twiddle U Instant diff --git a/src/forge/CardFactory.java b/src/forge/CardFactory.java index 625702b2ce7..623e708a535 100644 --- a/src/forge/CardFactory.java +++ b/src/forge/CardFactory.java @@ -18112,6 +18112,36 @@ public class CardFactory implements NewConstants { card.addSpellAbility(spell); }//end Twiddle //****************END*******END*********************** + + //*************** START *********** START ************************** + else if(cardName.equals("Storm Seeker")) { + /* + * Storm Seeker deals damage equal to the number of cards in target player's hand to that player. + */ + // TODO - this should be converted to keyword. + // tweak spDamageTgt keyword and add "TgtPHand" or something to CardFactoryUtil.xCount() + SpellAbility spell = new Spell(card) { + private static final long serialVersionUID = -5456164079435151319L; + + @Override + public void resolve() { + PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, getTargetPlayer()); + int damage = hand.size(); + + //sanity check + if( damage < 0 ) + damage = 0; + + AllZone.GameAction.addDamage(getTargetPlayer(), damage, card); + } + }; + spell.setChooseTargetAI(CardFactoryUtil.AI_targetHuman()); + + spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell)); + + card.clearSpellAbility(); + card.addSpellAbility(spell); + }//*************** END ************ END ************************** // Cards with Cycling abilities