Erwan
-replace "includeself" with "other" for lord and foreach keywords -added aslongas keyword (kird ape...)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ using std::map;
|
||||
|
||||
#define PARSER_LORD 1
|
||||
#define PARSER_FOREACH 2
|
||||
#define PARSER_ASLONGAS 3
|
||||
|
||||
class MTGAbility: public ActionElement{
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user