- Fix a bug with Nevinyrrals Disk
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-04-05 13:22:37 +00:00
parent a68478dcca
commit a8942331eb
8 changed files with 84 additions and 17 deletions
+22
View File
@@ -292,6 +292,28 @@ class ACopier:public TargetAbility{
};
//All Destroyer. TargetAbility
class AAllDestroyer:public ActivatedAbility{
public:
int bury;
AAllDestroyer(int _id, MTGCardInstance * _source, TargetChooser * _tc, int _bury = 0, ManaCost * _cost=NULL,int doTap =1):ActivatedAbility(_id,_source,_cost,0,doTap),bury(_bury){
tc = _tc;
}
int resolve(){
AbilityFactory af;
af.destroyAllInPlay(tc,bury);
return 1;
}
const char * getMenuText(){
return "Destroy All...";
}
};
//Destroyer. TargetAbility
class ADestroyer:public TargetAbility{
public:
+1 -1
View File
@@ -220,13 +220,13 @@ class GenericTriggeredAbility:public TriggeredAbility{
class AbilityFactory{
private:
int countCards(TargetChooser * tc, Player * player = NULL, int option = 0);
int destroyAllInPlay(TargetChooser * tc, int bury = 0);
int putInPlayFromZone(MTGCardInstance * card, MTGGameZone * zone, Player * p);
int parsePowerToughness(string s, int *power, int *toughness);
Trigger * parseTrigger(string magicText);
Damageable * parseCollateralTarget(MTGCardInstance * card, string s);
public:
int magicText(int id, Spell * spell, MTGCardInstance * card = NULL);
int destroyAllInPlay(TargetChooser * tc, int bury = 0);
void addAbilities(int _id, Spell * spell);
};