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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user