Laurent - 10E added Demon's Horn, dragon's claw and co. works well you have to click the card to get 1 life as the card state "may"..also added consume spirit (alias of drain life RV)

- ICE complete update, reorganized all cards alphabetically both in cards.dat and todo.dat + some few addition
- tentatively added a generic millstone, first step to add the keyword "deplete" to the parser.. still working on this one.
This commit is contained in:
wagic.laurent
2009-05-20 20:03:51 +00:00
parent dce2adc6fc
commit 215c7448c9
8 changed files with 1150 additions and 2161 deletions
+22 -1
View File
@@ -2141,7 +2141,6 @@ class AMillstone:public TargetAbility{
};
//1172 Pestilence
class APestilence: public ActivatedAbility{
public:
@@ -2629,6 +2628,28 @@ class AStasis:public ActivatedAbility{
//--------------Addon Abra------------------
//GenericMillstone
class ADeplete:public TargetAbility{
public:
int nbcards;
ADeplete(int _id, MTGCardInstance * card, ManaCost * _cost, int _nbcards,TargetChooser * _tc = NULL, int _tap = 1):TargetAbility(_id,card, _tc, _cost,0,_tap){
if (!tc) tc= NEW PlayerTargetChooser(card);
}
int resolve(){
Player * player = tc->getNextPlayerTarget();
if (!player) return 0;
MTGLibrary * library = player->game->library;
for (int i = 0; i < nbcards; i++){
if (library->nb_cards)
player->game->putInZone(library->cards[library->nb_cards-1],library, player->game->graveyard);
}
return 1;
}
};
// Generic Karma
class ADamageForTypeControlled: public TriggeredAbility{
public: