- fix soul warden
- fix counters (chainbreaker)
- removed cards that do not work
- updated version
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-27 10:33:11 +00:00
parent 7d672e091a
commit bb4cb3be7d
24 changed files with 201 additions and 184 deletions

View File

@@ -517,14 +517,15 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
size_t end = s.find(")", found);
size_t separator = s.find(",", found);
if (separator != string::npos){
nb = atoi(s.substr(found,separator-found).c_str());
string nbstr = s.substr(separator+1,end-separator-1);
nb = atoi(nbstr.c_str());
end = separator;
}
string spt = s.substr(found,end-found);
int power, toughness;
if ( parsePowerToughness(spt,&power, &toughness)){
MTGAbility * a = NEW AACounter(id,card,target,power,toughness,nb);
a->oneShot = 1;
a->oneShot = 1;
return a;
}
return NULL;