added getMenuText() functions to lord, aslongas, foreach, and thisforeach, to return correct names for the ability in cases where theyre being used in instants, activated abilities with "&&", "choice" and "may"

This commit is contained in:
omegablast2002@yahoo.com
2010-10-19 19:52:57 +00:00
parent 037b5c3598
commit c9e5aaa2c5

View File

@@ -2392,6 +2392,9 @@ public:
if (!isClone) SAFE_DELETE(ability);
}
const char * getMenuText(){
return ability->getMenuText();
}
AAsLongAs * clone() const{
AAsLongAs * a = NEW AAsLongAs(*this);
@@ -2471,6 +2474,10 @@ public:
if (!isClone) SAFE_DELETE(ability);
}
const char * getMenuText(){
return ability->getMenuText();
}
ALord * clone() const{
ALord * a = NEW ALord(*this);
a->isClone = 1;
@@ -2523,6 +2530,10 @@ public:
return 0;
}
const char * getMenuText(){
return ability->getMenuText();
}
AForeach * clone() const{
AForeach * a = NEW AForeach(*this);
a->isClone = 1;
@@ -2684,6 +2695,9 @@ public:
}
}
const char * getMenuText(){
return ability->getMenuText();
}
AThisForEach * clone() const{
AThisForEach * a = NEW AThisForEach(*this);