mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Added Windstorm and it's LQ pic url.
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
|
||||
windstorm.jpg http://www.wizards.com/global/images/magic/general/windstorm.jpg
|
||||
lightkeeper_of_emeria.jpg http://www.wizards.com/global/images/magic/general/lightkeeper_of_emeria.jpg
|
||||
bloodcurdling_scream.jpg http://www.wizards.com/global/images/magic/general/bloodcurdling_scream.jpg
|
||||
enrage.jpg http://www.wizards.com/global/images/magic/general/enrage.jpg
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
Windstorm
|
||||
X G
|
||||
Instant
|
||||
no text
|
||||
|
||||
Lightkeeper of Emeria
|
||||
3 W
|
||||
Creature Angel
|
||||
|
||||
@@ -17022,6 +17022,61 @@ public class CardFactory implements NewConstants {
|
||||
}
|
||||
//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if (cardName.equals("Windstorm"))
|
||||
{
|
||||
final SpellAbility spell = new Spell(card)
|
||||
{
|
||||
private static final long serialVersionUID = 6024081054401784073L;
|
||||
public void resolve()
|
||||
{
|
||||
CardList all = new CardList();
|
||||
all.addAll(AllZone.Human_Play.getCards());
|
||||
all.addAll(AllZone.Computer_Play.getCards());
|
||||
all = all.filter(new CardListFilter()
|
||||
{
|
||||
public boolean addCard(Card c)
|
||||
{
|
||||
return c.isCreature() && c.getKeyword().contains("Flying") &&
|
||||
CardFactoryUtil.canDamage(card, c);
|
||||
}
|
||||
});
|
||||
|
||||
for(int i = 0; i < all.size(); i++)
|
||||
all.get(i).addDamage(card.getXManaCostPaid(), card);
|
||||
|
||||
card.setXManaCostPaid(0);
|
||||
}
|
||||
public boolean canPlayAI()
|
||||
{
|
||||
final int maxX = ComputerUtil.getAvailableMana().size() - 1;
|
||||
|
||||
CardListFilter filter = new CardListFilter(){
|
||||
public boolean addCard(Card c)
|
||||
{
|
||||
return c.isCreature() && c.getKeyword().contains("Flying") &&
|
||||
CardFactoryUtil.canDamage(card, c) && maxX >= (c.getNetDefense() + c.getDamage());
|
||||
}
|
||||
};
|
||||
|
||||
CardList humanFliers = new CardList(AllZone.Human_Play.getCards());
|
||||
humanFliers = humanFliers.filter(filter);
|
||||
|
||||
CardList compFliers = new CardList(AllZone.Computer_Play.getCards());
|
||||
compFliers = compFliers.filter(filter);
|
||||
|
||||
return humanFliers.size() > (compFliers.size() + 2);
|
||||
}
|
||||
};
|
||||
spell.setDescription("Windstorm deals X damage to each creature with flying.");
|
||||
spell.setStackDescription("Windstorm - deals X damage to each creature with flying.");
|
||||
|
||||
card.clearSpellAbility();
|
||||
card.addSpellAbility(spell);
|
||||
}
|
||||
//*************** END ************ END **************************
|
||||
|
||||
// Cards with Cycling abilities
|
||||
// -1 means keyword "Cycling" not found
|
||||
if(hasKeyword(card, "Cycling") != -1) {
|
||||
|
||||
Reference in New Issue
Block a user