mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Added a working Pestilence Demon.
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
|
||||
pestilence_demon.jpg http://www.wizards.com/global/images/magic/general/pestilence_demon.jpg
|
||||
bloodthrone_vampire.jpg http://www.wizards.com/global/images/magic/general/bloodthrone_vampire.jpg
|
||||
vampire_aristocrat.jpg http://www.wizards.com/global/images/magic/general/vampire_aristocrat.jpg
|
||||
tooth_of_chiss_goria.jpg http://www.wizards.com/global/images/magic/general/tooth_of_chiss_goria.jpg
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
Pestilence Demon
|
||||
5 B B B
|
||||
Creature Demon
|
||||
no text
|
||||
7/6
|
||||
Flying
|
||||
|
||||
Palladia-Mors
|
||||
2 W W R R G G
|
||||
Legendary Creature Elder Dragon
|
||||
|
||||
@@ -19693,6 +19693,65 @@ public class CardFactory_Creatures {
|
||||
ability.setBeforePayMana(target);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Pestilence Demon")) {
|
||||
final SpellAbility ability = new Ability(card, "B") {
|
||||
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
CardList human = new CardList(AllZone.Human_Play.getCards());
|
||||
CardList computer = new CardList(AllZone.Computer_Play.getCards());
|
||||
|
||||
human = human.getType("Creature");
|
||||
computer = computer.getType("Creature");
|
||||
|
||||
return AllZone.Computer_Life.getLife() > 2
|
||||
&& !(human.size() == 0
|
||||
&& 0 < computer.size())
|
||||
&& card.getKillDamage() > 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
//get all creatures
|
||||
CardList list = new CardList();
|
||||
list.addAll(AllZone.Human_Play.getCards());
|
||||
list.addAll(AllZone.Computer_Play.getCards());
|
||||
list = list.getType("Creature");
|
||||
|
||||
for(int i = 0; i < list.size(); i++) {
|
||||
if(CardFactoryUtil.canDamage(card, list.get(i))) list.get(i).addDamage(1, card);
|
||||
}
|
||||
|
||||
AllZone.Human_Life.subtractLife(1);
|
||||
AllZone.Computer_Life.subtractLife(1);
|
||||
}//resolve()
|
||||
};//SpellAbility
|
||||
ability.setDescription("B: Pestilence Demon deals 1 damage to each creature and each player.");
|
||||
ability.setStackDescription(card + " deals 1 damage to each creature and each player.");
|
||||
|
||||
card.clearSpellAbility();
|
||||
card.addSpellAbility(new Spell_Permanent(card) {
|
||||
private static final long serialVersionUID = -9008807568695047980L;
|
||||
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
//get all creatures
|
||||
CardList list = new CardList();
|
||||
list.addAll(AllZone.Human_Play.getCards());
|
||||
list.addAll(AllZone.Computer_Play.getCards());
|
||||
list = list.getType("Creature");
|
||||
|
||||
return 0 < list.size();
|
||||
}
|
||||
});
|
||||
|
||||
card.addSpellAbility(ability);
|
||||
|
||||
card.setSVar("PlayMain1", "TRUE");
|
||||
}
|
||||
//*************** END ************ END **************************
|
||||
|
||||
|
||||
// Cards with Cycling abilities
|
||||
// -1 means keyword "Cycling" not found
|
||||
|
||||
Reference in New Issue
Block a user