added Oust from Rise of the Eldrazi

This commit is contained in:
jendave
2011-08-06 04:18:07 +00:00
parent 521f90909c
commit 839219e1cf
3 changed files with 45 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
oust.jpg http://www.wizards.com/global/images/magic/general/oust.jpg
curse_of_wizardry.jpg http://www.wizards.com/global/images/magic/general/curse_of_wizardry.jpg curse_of_wizardry.jpg http://www.wizards.com/global/images/magic/general/curse_of_wizardry.jpg
kor_line_slinger.jpg http://www.wizards.com/global/images/magic/general/kor_line_slinger.jpg kor_line_slinger.jpg http://www.wizards.com/global/images/magic/general/kor_line_slinger.jpg
dawnglare_invoker.jpg http://www.wizards.com/global/images/magic/general/dawnglare_invoker.jpg dawnglare_invoker.jpg http://www.wizards.com/global/images/magic/general/dawnglare_invoker.jpg

View File

@@ -1,3 +1,8 @@
Oust
W
Sorcery
Put target creature into its owner's library second from the top. Its controller gains 3 life.
Curse of Wizardry Curse of Wizardry
2 B B 2 B B
Enchantment Enchantment

View File

@@ -19315,6 +19315,45 @@ public class CardFactory implements NewConstants {
card.addComesIntoPlayCommand(comesIntoPlay); card.addComesIntoPlayCommand(comesIntoPlay);
}//*************** END ************ END ************************** }//*************** END ************ END **************************
//*************** START *********** START **************************
else if (cardName.equals("Oust")) {
/*
* Put target creature into its owner's library second from the
* top. Its controller gains 3 life.
*/
final SpellAbility spell = new Spell(card){
private static final long serialVersionUID = 4305992990847699048L;
@Override
public void resolve() {
Card c = getTargetCard();
if(null != c) {
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, c.getOwner());
PlayerZone play = AllZone.getZone(Constant.Zone.Play, c.getController());
play.remove(c);
lib.add(c, 1); //add second from top
PlayerLife life = AllZone.GameAction.getPlayerLife(c.getController());
life.addLife(3);
}
}
@Override
public void chooseTargetAI() {
CardList creatures = AllZoneUtil.getCreaturesInPlay(Constant.Player.Human);
setTargetCard(CardFactoryUtil.AI_getBestCreature(creatures));
}//chooseTargetAI()
@Override
public boolean canPlayAI() {
return AllZoneUtil.getCreaturesInPlay(Constant.Player.Human).size() > 0;
}
};
spell.setBeforePayMana(CardFactoryUtil.input_targetCreature(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
if(hasKeyword(card, "Cycling") != -1) { if(hasKeyword(card, "Cycling") != -1) {