adding Storm Seeker. TODO - when someone is ambitious, this can be converted to keyword with some changes to the keyword code.

This commit is contained in:
jendave
2011-08-06 03:58:41 +00:00
parent c445b19f29
commit 87908a9ecf
3 changed files with 36 additions and 0 deletions

View File

@@ -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_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_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 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 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 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 stalking_assassin.jpg http://www.wizards.com/global/images/magic/general/stalking_assassin.jpg

View File

@@ -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 Twiddle
U U
Instant Instant

View File

@@ -18113,6 +18113,36 @@ public class CardFactory implements NewConstants {
}//end Twiddle }//end Twiddle
//****************END*******END*********************** //****************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 // Cards with Cycling abilities
// -1 means keyword "Cycling" not found // -1 means keyword "Cycling" not found