added this( keyword variable{ word variable } ) support
auto=this(variable{lifetotal} <10) 1/1
auto=this(variable{opponentpoisoncount} >1) infect
basically allows you to compare against a word variable.
This commit is contained in:
@@ -173,4 +173,12 @@ class ThisX:public ThisDescriptor{
|
||||
ThisX * clone() const;
|
||||
};
|
||||
|
||||
class ThisVariable:public ThisDescriptor{
|
||||
public:
|
||||
string vWord;
|
||||
virtual int match(MTGCardInstance * card);
|
||||
ThisVariable(int comp,string vWord = "");
|
||||
ThisVariable * clone() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user