J0N4TH4N - removed hard code for Dreamborn Muse

This commit is contained in:
leungclj
2009-10-04 01:39:23 +00:00
parent 7f833b963e
commit f882fd437b
3 changed files with 3 additions and 67 deletions

View File

@@ -640,12 +640,14 @@ mana={2}
text=At the beginning of each player's upkeep, that player puts the top X cards of his or her library into his or her graveyard, where X is the number of cards in his or her hand.
id=135246
name=Dreamborn Muse
rarity=R
auto=@each my upkeep:foreach(*|myhand) deplete:1 controller
auto=@each opponent upkeep:foreach(*|opponenthand) deplete:1 opponent
type=Creature
mana={2}{U}{U}
power=2
subtype=Spirit
toughness=2
rarity=R
[/card]
[card]
text=

View File

@@ -1218,29 +1218,6 @@ class APowerToughnessModifierUntilEndOfTurn: public ActivatedAbility{
//Untap Blockers with simple Mana Mechanism
class AUntapManaBlocker: public UntapBlocker{
public:
AUntapManaBlocker(int id, MTGCardInstance * card, ManaCost * _cost):UntapBlocker(id, card, _cost){
}
AUntapManaBlocker(int id, MTGCardInstance * card, MTGCardInstance * _target, ManaCost * _cost):UntapBlocker(id, card,_target, _cost){
}
virtual ostream& toString(ostream& out) const
{
out << "AUntapManaBlocker ::: (";
return UntapBlocker::toString(out) << ")";
}
AUntapManaBlocker * clone() const{
AUntapManaBlocker * a = NEW AUntapManaBlocker(*this);
a->isClone = 1;
return a;
}
};
//Circle of Protections
class ACircleOfProtection: public TargetAbility{
protected:
@@ -3899,43 +3876,6 @@ class AARandomDiscarder:public ActivatedAbilityTP{
};
// Dreamborn Muse
class ADreambornMuse: public TriggeredAbility{
public:
int nbcards;
ADreambornMuse(int _id, MTGCardInstance * _source):TriggeredAbility(_id, _source){
}
int trigger(){
if (newPhase != currentPhase && newPhase == Constants::MTG_PHASE_UPKEEP) return 1;
return 0;
}
int resolve(){
int nbcards = game->currentPlayer->game->hand->nb_cards;
MTGLibrary * library = game->currentPlayer->game->library;
for (int i = 0; i < nbcards; i++){
if (library->nb_cards)
game->currentPlayer->game->putInZone(library->cards[library->nb_cards-1],library,game->currentPlayer->game->graveyard);
}
return 1;
}
virtual ostream& toString(ostream& out) const
{
out << "ADreambornMuse ::: nbcards : " << nbcards
<< " (";
return TriggeredAbility::toString(out) << ")";
}
ADreambornMuse * clone() const{
ADreambornMuse * a = NEW ADreambornMuse(*this);
a->isClone = 1;
return a;
}
};
//ShieldOfTheAge
class AShieldOfTheAge: public TargetAbility{
public:

View File

@@ -1510,12 +1510,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
game->addObserver( NEW ALavaborn(_id ,card, Constants::MTG_PHASE_UPKEEP, -3,-3));
break;
}
case 135246: //Dreamborn Muse
{
game->addObserver( NEW ADreambornMuse(_id ,card));
break;
}
case 129774: // Traumatize
{
int nbcards;