From c9e5aaa2c56a9cce9b446e4881eed06225e32436 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Tue, 19 Oct 2010 19:52:57 +0000 Subject: [PATCH] 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" --- projects/mtg/include/AllAbilities.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index da9407a3c..dac3b43fc 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -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);