mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- 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:
@@ -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")) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user