mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user