- replaced erroneous Mirrodin set with invasion set
- added a few cards with "aslongas" ability
This commit is contained in:
wagic.the.homebrew
2009-03-15 05:59:21 +00:00
parent ef53771843
commit ff8e05cf04
17 changed files with 6803 additions and 5064 deletions
+7 -2
View File
@@ -2424,7 +2424,7 @@ class AKarma: public TriggeredAbility{
}
};
//1355 Norther Paladin
//1355 Northern Paladin
class ANorthernPaladin:public TargetAbility{
public:
ANorthernPaladin(int _id, MTGCardInstance * card):TargetAbility(_id, card){
@@ -2672,12 +2672,14 @@ class AKirdApe:public ListMaintainerAbility{
TargetChooser * tc;
int power;
int toughness;
int ability;
int includeSelf;
AKirdApe(int _id, MTGCardInstance * _source, TargetChooser * _tc, int _power, int _toughness,int _includeSelf):ListMaintainerAbility(_id, _source){
AKirdApe(int _id, MTGCardInstance * _source, TargetChooser * _tc, int _includeSelf,int _power = 0, int _toughness = 0, int _ability=-1):ListMaintainerAbility(_id, _source){
power = _power;
toughness = _toughness;
tc = _tc;
includeSelf = _includeSelf;
ability=_ability;
}
int canBeInList(MTGCardInstance * card){
@@ -2689,15 +2691,18 @@ class AKirdApe:public ListMaintainerAbility{
if (cards.size()== 1){
source->power+=power;
source->addToToughness(toughness);
if (ability != -1) source->basicAbilities[ability] +=1;
return 1;
}
return 0;
}
int removed(MTGCardInstance * card){
if (cards.size()== 0){
source->power-=power;
source->addToToughness(-toughness);
if ((ability != -1) && source->basicAbilities[ability] >0 ) source->basicAbilities[ability] -=1;
return 1;
}
return 0;