mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Added Borrowing the East Wind and the LQ pic urls for the last 7 new cards.
This commit is contained in:
@@ -38,6 +38,14 @@ 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
|
||||
borrowing_the_east_wind.jpg http://serv3.tcgimages.eu/img/cards/Portal_Three_Kingdoms/borrowing_the_east_wind.jpg
|
||||
angelsong.jpg http://www.wizards.com/global/images/magic/general/angelsong.jpg
|
||||
lull.jpg http://www.wizards.com/global/images/magic/general/lull.jpg
|
||||
holy_day.jpg http://www.wizards.com/global/images/magic/general/holy_day.jpg
|
||||
moments_peace.jpg http://www.wizards.com/global/images/magic/general/moments_peace.jpg
|
||||
darkness.jpg http://www.wizards.com/global/images/magic/general/darkness.jpg
|
||||
respite.jpg http://www.wizards.com/global/images/magic/general/respite.jpg
|
||||
fog.jpg http://www.wizards.com/global/images/magic/general/fog.jpg
|
||||
howl_of_the_night_pack.jpg http://www.wizards.com/global/images/magic/general/howl_of_the_night_pack.jpg
|
||||
wall_of_reverence.jpg http://www.wizards.com/global/images/magic/general/wall_of_reverence.jpg
|
||||
beacon_of_creation.jpg http://www.wizards.com/global/images/magic/general/beacon_of_creation.jpg
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
Borrowing the East Wind
|
||||
X G G
|
||||
Sorcery
|
||||
no text
|
||||
|
||||
Angelsong
|
||||
1 W
|
||||
Instant
|
||||
|
||||
@@ -17290,6 +17290,66 @@ public class CardFactory implements NewConstants {
|
||||
card.addSpellAbility(CardFactoryUtil.ability_Flashback(card, "2 G", "0"));
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if (cardName.equals("Borrowing the East Wind"))
|
||||
{
|
||||
final SpellAbility spell = new Spell(card)
|
||||
{
|
||||
private static final long serialVersionUID = 3317055866601782361L;
|
||||
public void resolve()
|
||||
{
|
||||
int damage = card.getXManaCostPaid();
|
||||
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("Horsemanship") &&
|
||||
CardFactoryUtil.canDamage(card, c);
|
||||
}
|
||||
});
|
||||
|
||||
for(int i = 0; i < all.size(); i++)
|
||||
all.get(i).addDamage(card.getXManaCostPaid(), card);
|
||||
|
||||
AllZone.GameAction.addDamage(Constant.Player.Human, damage);
|
||||
AllZone.GameAction.addDamage(Constant.Player.Computer, damage);
|
||||
|
||||
card.setXManaCostPaid(0);
|
||||
}
|
||||
public boolean canPlayAI()
|
||||
{
|
||||
final int maxX = ComputerUtil.getAvailableMana().size() - CardUtil.getConvertedManaCost(card);
|
||||
|
||||
if (AllZone.Human_Life.getLife() <= maxX)
|
||||
return true;
|
||||
|
||||
CardListFilter filter = new CardListFilter(){
|
||||
public boolean addCard(Card c)
|
||||
{
|
||||
return c.isCreature() && c.getKeyword().contains("Horsemanship") &&
|
||||
CardFactoryUtil.canDamage(card, c) && maxX >= (c.getNetDefense() + c.getDamage());
|
||||
}
|
||||
};
|
||||
|
||||
CardList human = new CardList(AllZone.Human_Play.getCards());
|
||||
human = human.filter(filter);
|
||||
|
||||
CardList comp = new CardList(AllZone.Computer_Play.getCards());
|
||||
comp = comp.filter(filter);
|
||||
|
||||
return human.size() > (comp.size() + 2) && AllZone.Computer_Life.getLife() > maxX + 3;
|
||||
}
|
||||
};
|
||||
spell.setDescription("Borrowing the East Wind deals X damage to each creature with horsemanship and each player.");
|
||||
spell.setStackDescription("Borrowing the East Wind - deals X damage to each creature with horsemanship and each player.");
|
||||
|
||||
card.clearSpellAbility();
|
||||
card.addSpellAbility(spell);
|
||||
}
|
||||
//*************** END ************ END **************************
|
||||
|
||||
// Cards with Cycling abilities
|
||||
// -1 means keyword "Cycling" not found
|
||||
|
||||
Reference in New Issue
Block a user