From bbf1de5134879c7fbd029274a8b02fcfaf2a3073 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Mon, 23 Jul 2012 22:44:02 +0000 Subject: [PATCH] fix for may menus not stacking if multi cards with may effects come into play at the same time. although I tested this fix, it will require extremely indepth testing which I can not do alone to ensure that doing this does not screw up something else. I think however that we are safe, becuase we test the same condition under test destroy and gameobserver update without any negitive recourse. --- projects/mtg/src/AllAbilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/AllAbilities.cpp b/projects/mtg/src/AllAbilities.cpp index 03325e5b1..0b3fa1b51 100644 --- a/projects/mtg/src/AllAbilities.cpp +++ b/projects/mtg/src/AllAbilities.cpp @@ -3040,7 +3040,7 @@ MayAbility::MayAbility(GameObserver* observer, int _id, MTGAbility * _ability, M void MayAbility::Update(float dt) { MTGAbility::Update(dt); - if (!triggered && !game->getCurrentTargetChooser()) + if (!triggered && !game->getCurrentTargetChooser() && !game->mLayers->actionLayer()->menuObject) { triggered = 1; if(optionalCost && !source->controller()->getManaPool()->canAfford(optionalCost))