mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Added Momentous Fall.
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_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
|
||||||
|
momentous_fall.jpg http://www.wizards.com/global/images/magic/general/momentous_fall.jpg
|
||||||
hammer_of_bogardan.jpg http://www.wizards.com/global/images/magic/general/hammer_of_bogardan.jpg
|
hammer_of_bogardan.jpg http://www.wizards.com/global/images/magic/general/hammer_of_bogardan.jpg
|
||||||
doomsday.jpg http://www.wizards.com/global/images/magic/general/doomsday.jpg
|
doomsday.jpg http://www.wizards.com/global/images/magic/general/doomsday.jpg
|
||||||
eternal_dragon.jpg http://www.wizards.com/global/images/magic/general/eternal_dragon.jpg
|
eternal_dragon.jpg http://www.wizards.com/global/images/magic/general/eternal_dragon.jpg
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
Momentous Fall
|
||||||
|
2 G G
|
||||||
|
Instant
|
||||||
|
As an additional cost to cast Momentous Fall, sacrifice a creature. You draw cards equal to the sacrificed creature's power, then you gain life equal to its toughness.
|
||||||
|
|
||||||
Hammer of Bogardan
|
Hammer of Bogardan
|
||||||
1 R R
|
1 R R
|
||||||
Sorcery
|
Sorcery
|
||||||
|
|||||||
@@ -13024,6 +13024,65 @@ public class CardFactory implements NewConstants {
|
|||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
//*************** START *********** START **************************
|
||||||
|
else if(cardName.equals("Momentous Fall")) {
|
||||||
|
final SpellAbility spell = new Spell(card) {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -56339412409L;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void resolve() {
|
||||||
|
Card Sacrificed = getTargetCard();
|
||||||
|
if(Sacrificed != null) {
|
||||||
|
for(int i = 0; i < Sacrificed.getNetAttack(); i++) {
|
||||||
|
AllZone.GameAction.drawCard(card.getController());
|
||||||
|
}
|
||||||
|
PlayerLife life = AllZone.GameAction.getPlayerLife(card.getController());
|
||||||
|
life.addLife(Sacrificed.getNetDefense());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canPlay() {
|
||||||
|
PlayerZone play = AllZone.getZone(Constant.Zone.Play, card.getController());
|
||||||
|
CardList Creatures = new CardList(play.getCards());
|
||||||
|
Creatures = Creatures.getType("Creature");
|
||||||
|
return Creatures.size() > 0 && super.canPlay();
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public boolean canPlayAI() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Input target = new Input() {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 42466124531655L;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void showMessage() {
|
||||||
|
AllZone.Display.showMessage("Select a creature to sacrifice");
|
||||||
|
ButtonUtil.enableOnlyCancel();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void selectCard(Card c, PlayerZone zone) {
|
||||||
|
PlayerZone Play = AllZone.getZone(Constant.Zone.Play, card.getController());
|
||||||
|
if(AllZone.GameAction.isCardInZone(c, Play) && c.isCreature() == true) {
|
||||||
|
spell.setTargetCard(c);
|
||||||
|
AllZone.GameAction.sacrifice(c);
|
||||||
|
AllZone.Stack.add(spell);
|
||||||
|
stopSetNext(new ComputerAI_StackNotEmpty());
|
||||||
|
}
|
||||||
|
}//selectCard()
|
||||||
|
};//Input
|
||||||
|
card.clearSpellAbility();
|
||||||
|
card.addSpellAbility(spell);
|
||||||
|
spell.setAfterPayMana(target);
|
||||||
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Culling Sun")) {
|
else if(cardName.equals("Culling Sun")) {
|
||||||
SpellAbility spell = new Spell(card) {
|
SpellAbility spell = new Spell(card) {
|
||||||
|
|||||||
Reference in New Issue
Block a user