added a way to set the max amount a counter ability can give you...aka the clockworks effect...as per mtg rules, you are still allowed to activate the effect but if it would put the target counters higher then the max allowed by that ability, then it will do nothing.

it strings exactly like normal counters did, except now after the name you can add yet another "," and a number or word varible...if you will not have a name it is still required that you add the extra comma, as it is a seperator for the parser. so clock works swarm would be counter(1/0,1,,4)...no matter what, this ability will do nothing if the amount of the target counter is already higher then the max allowed, in this case 4...other effects can give the creature more counters...however..this ability will resolve to nothing if youve exceeded the limit. until you are under the amount again.
This commit is contained in:
omegablast2002@yahoo.com
2011-02-08 15:12:14 +00:00
parent d852486355
commit f7b34295fb
4 changed files with 45 additions and 10 deletions

View File

@@ -886,12 +886,13 @@ class AACounter: public ActivatedAbility
public:
string counterstring;
int nb;
int maxNb;
int power;
int toughness;
string name;
string menu;
AACounter(int id, MTGCardInstance * source, MTGCardInstance * target,string counterstring, const char * _name, int power, int toughness, int nb,
AACounter(int id, MTGCardInstance * source, MTGCardInstance * target,string counterstring, const char * _name, int power, int toughness, int nb,int maxNb = 0,
ManaCost * cost = NULL, int doTap = 0);
int resolve();

View File

@@ -11,6 +11,7 @@ class Counter
public:
string name;
int nb;
int maxNb;
int power, toughness;
MTGCardInstance * target;
Counter(MTGCardInstance * _target, int _power, int _toughness);