Laurent - Added Dreamborn Muse (10E) tested and work, also tested the deplete function with instant and sorcery works fine (see ray of erasure ICE)

This commit is contained in:
wagic.laurent
2009-05-26 22:03:30 +00:00
parent c1239606cb
commit deffc085f4
6 changed files with 61 additions and 21 deletions
+31
View File
@@ -3399,6 +3399,37 @@ class ADamageForTypeControlled: public TriggeredAbility{
}
};
// 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 << "ADamageForTypeControlled ::: nbcards : " << nbcards
<< " (";
return TriggeredAbility::toString(out) << ")";
}
};
//ShieldOfTheAge
class AShieldOfTheAge: public TargetAbility{
public: