-fixed bug with Rampant growth. Other cards that do the same kind of thing can now be coded
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-20 13:56:30 +00:00
parent 82204fd8b3
commit 5a1b75b8d9
6 changed files with 32 additions and 7 deletions
+7 -4
View File
@@ -162,7 +162,8 @@ public:
vector<MTGAbility *> abilities;
MultiAbility(int _id, MTGCardInstance * card,ManaCost * _cost, int _tap):ActivatedAbility(_id, card,_cost,0,_tap){
MultiAbility(int _id, MTGCardInstance * card,Targetable * _target, ManaCost * _cost, int _tap):ActivatedAbility(_id, card,_cost,0,_tap){
if (_target) target = _target;
}
@@ -1648,13 +1649,14 @@ class AATapper:public ActivatedAbility{
int resolve(){
MTGCardInstance * _target = (MTGCardInstance *) target;
if (_target){
while (_target->next) _target=_target->next; //This is for cards such as rampant growth
_target->tap();
}
return 1;
}
const char * getMenuText(){
return "Tap target";
return "Tap";
}
AATapper * clone() const{
@@ -1675,13 +1677,14 @@ class AAUntapper:public ActivatedAbility{
int resolve(){
MTGCardInstance * _target = (MTGCardInstance *) target;
if (_target){
_target->tap();
while (_target->next) _target=_target->next; //This is for cards such as rampant growth
_target->untap();
}
return 1;
}
const char * getMenuText(){
return "untap target";
return "Untap";
}
AAUntapper * clone() const{