Hide Action stack if there's a menu object

This commit is contained in:
Anthony Calosa
2017-03-10 19:24:39 +08:00
parent 37642c1f78
commit 8f61b590f8
2 changed files with 5 additions and 2 deletions

View File

@@ -6555,7 +6555,7 @@ public:
const string getMenuText()
{
return "phase alter";
return "Phase Alter";
}
APhaseAlter * clone() const

View File

@@ -96,7 +96,7 @@ void Interruptible::Render(MTGCardInstance * source, JQuad * targetQuad, string
JRenderer * renderer = JRenderer::GetInstance();
bool hiddenview = aType == MTGAbility::HIDDENVIEW?true:false;
if (!targetQuad)
if (!targetQuad && !mytargetsQuad.size())
{
/*if(source->controller()->isHuman() && source->controller()->opponent()->isAI() && !alt2.size() && _(action).c_str() == source->name)
mFont->DrawString("You play ", x + 35, y-15 + GetVerticalTextOffset(), JGETEXT_LEFT);
@@ -1040,6 +1040,9 @@ void ActionStack::Update(float dt)
if (getCurrentTutorial() && (observer->players[0]->isHuman() || observer->players[1]->isHuman() ) )
return;
if (observer->mLayers->actionLayer()->menuObject || observer->LPWeffect)
return;//dont do any of this if a menuobject exist.
askIfWishesToInterrupt = NULL;
//modal = 0;