moved the level varible from MTGcard to MTGprimitive.

This commit is contained in:
omegablast2002@yahoo.com
2010-10-23 23:48:02 +00:00
parent d7f58285f4
commit 8cb1f0cc7c
6 changed files with 16 additions and 17 deletions
+2 -2
View File
@@ -112,8 +112,8 @@ int MTGAllCards::processConfLine(string &s, MTGCard *card, CardPrimitive * primi
break;
case 'l': //Levelup, this is just to give Ai an idea when to stop leveling a creature.
if(!card) card = NEW MTGCard();
card->setLevelcap(atoi(val));
if (!primitive) primitive = NEW CardPrimitive();
primitive->setMaxLevel(atoi(val));
break;
case 'o': //othercost