Erwan
- Fix a bug with Nevinyrrals Disk
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user