turned the "ai hint" for level up creatures into an MTGAbility.

this fixes a bug(?) that had high priority and maintains same effect as before. removed all traces of the "bugged(?) hint" from CardPrimitive.
Issue: 498
This commit is contained in:
omegablast2002@yahoo.com
2010-10-31 17:19:20 +00:00
parent 777098f763
commit 150c5f4c99
7 changed files with 39 additions and 20 deletions
+17
View File
@@ -1585,6 +1585,23 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
return a;
}
//frozen, next untap this does not untap.
found = s.find("maxlevel:");
if (found != string::npos){
size_t start = s.find(":",found);
size_t end = s.find(" ",start);
int value;
if (end != string::npos){
value = atoi(s.substr(start+1,end-start-1).c_str());
}
else{
value = atoi(s.substr(start+1).c_str());
}
MTGAbility * a = NEW AAWhatsMax(id,card,card,NULL,0,value);
a->oneShot = 1;
return a;
}
//switch targest power with toughness
found = s.find("swap");
if (found != string::npos){