- Added AltCost SVar to handle cards that have an Alternative Casting Cost.

- GameAction.GetSpellCostChange() now takes mana cost as a parameter (to prevent overwriting of AltCost)
- Added Fireblast
- Converted Bringer of the Blue/Green/White Dawn to use AltCost
This commit is contained in:
jendave
2011-08-06 09:23:43 +00:00
parent df7d912c9f
commit 2dc420f95f
12 changed files with 75 additions and 51 deletions

View File

@@ -10470,40 +10470,6 @@ public class CardFactory_Creatures {
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Bringer of the Green Dawn") || cardName.equals("Bringer of the Blue Dawn")
|| cardName.equals("Bringer of the White Dawn")) {
final SpellAbility diffCost = new Spell(card) {
private static final long serialVersionUID = -1598664186463358630L;
@Override
public void resolve() {
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, card.getController());
PlayerZone play = AllZone.getZone(Constant.Zone.Play, card.getController());
hand.remove(card);
play.add(card);
//card.comesIntoPlay(); //do i need this?
}
@Override
public boolean canPlay() {
return AllZone.Phase.getActivePlayer().equals(card.getController())
&& !AllZone.Phase.getPhase().equals("End of Turn")
&& !AllZone.GameAction.isCardInPlay(card) && super.canPlay();
}
};
diffCost.setManaCost("W U B R G");
diffCost.setDescription("You may pay W U B R G rather than pay " + card.getName() + "'s mana cost. ");
diffCost.setStackDescription(card.getName() + " - Creature 5/5");
card.addSpellAbility(diffCost);
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Thelonite Hermit")) {