Laurent - RAV update also added a lot of cards with deplete function (Glimpse the Unthinkable - WTF ??? this card is HUGE !!!!) and some also to the code did not test them... :D

This commit is contained in:
wagic.laurent
2009-05-25 23:14:01 +00:00
parent 2f9df464b6
commit 2e6b01a6fc
3 changed files with 144 additions and 826 deletions
+20
View File
@@ -1843,6 +1843,26 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
break;
}
// --- addon Ravnica---
case 87978: // Flow of Ideas
{
int nbcards = card->controller()->game->inPlay->countByType("Island");
game->mLayers->stackLayer()->addDraw(card->controller(),nbcards);
break;
}
case 89114: //Psychic Drain
{
Player * player = spell->getNextPlayerTarget();
MTGLibrary * library = player->game->library;
int x = spell->cost->getConvertedCost() - 2;
for (int i = 0; i < x; i++){
if (library->nb_cards)
player->game->putInZone(library->cards[library->nb_cards-1],library, player->game->graveyard);
}
game->currentlyActing()->life+= x;
break;
}
default:
break;