Laurent - Added "deplete" to the parser does not work for instant and sorcery at the moment (WILL NEED HELP FOR THAT)

Updated cards.dat to include the one with deplete possibility.
Also included various cards (alias from RV)
This commit is contained in:
wagic.laurent
2009-05-21 16:28:13 +00:00
parent db912f2d34
commit 37008df473
9 changed files with 88 additions and 76 deletions
+2 -2
View File
@@ -2633,10 +2633,10 @@ class AStasis:public ActivatedAbility{
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){
ADeplete(int _id, MTGCardInstance * card, ManaCost * _cost, int _nbcards = 1,TargetChooser * _tc = NULL, int _tap = 1):TargetAbility(_id,card, _tc, _cost,0,_tap){
if (!tc) tc= NEW PlayerTargetChooser(card);
nbcards = _nbcards;
}
int resolve(){
Player * player = tc->getNextPlayerTarget();
if (!player) return 0;