-replace "includeself" with "other" for lord and foreach keywords
-added aslongas keyword (kird ape...)
This commit is contained in:
wagic.the.homebrew
2009-03-15 05:00:06 +00:00
parent 61463d047b
commit ef53771843
17 changed files with 123 additions and 109 deletions

View File

@@ -2672,14 +2672,16 @@ class AKirdApe:public ListMaintainerAbility{
TargetChooser * tc;
int power;
int toughness;
AKirdApe(int _id, MTGCardInstance * _source, TargetChooser * _tc, int _power, int _toughness):ListMaintainerAbility(_id, _source){
int includeSelf;
AKirdApe(int _id, MTGCardInstance * _source, TargetChooser * _tc, int _power, int _toughness,int _includeSelf):ListMaintainerAbility(_id, _source){
power = _power;
toughness = _toughness;
tc = _tc;
includeSelf = _includeSelf;
}
int canBeInList(MTGCardInstance * card){
if (card->controller() == source->controller() && tc->canTarget(card)) return 1;
if ((includeSelf || card!=source) && tc->canTarget(card)) return 1;
return 0;
}

View File

@@ -33,6 +33,7 @@ using std::map;
#define PARSER_LORD 1
#define PARSER_FOREACH 2
#define PARSER_ASLONGAS 3
class MTGAbility: public ActionElement{
protected: