added miracle ability.

i choose to use other cost instead of creating a brand new cost type.

otherrestriction determines if the card is the miracle for the turn.

[card]
name=Devastation Tide
auto=all(*[-land]) moveto(ownerhand)
other={1}{u} name(Miracle)
otherrestriction=miracle
text=Return all nonland permanents to their owners' hands. -- Miracle {1}{U} (You may cast this card for its miracle cost when you draw it if it's the first card you drew this turn.)
mana={3}{U}{U}
type=Sorcery
[/card]
This commit is contained in:
omegablast2002@yahoo.com
2013-05-19 01:48:51 +00:00
parent 4b167c3776
commit a055044281
6 changed files with 22 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ public:
bool graveEffects;
bool exileEffects;
bool suspended;
bool miracle;
int chooseacolor;
string chooseasubtype;
int coinSide;//1 = tails

View File

@@ -131,6 +131,7 @@ class MTGGameZone {
class MTGLibrary: public MTGGameZone {
public:
bool miracle;//we already consider a card a miracle drawn from here.
vector<MTGCardInstance*>placeOnTop;
virtual ostream& toString(ostream&) const;
const char * getName(){return "library";}