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.
This commit is contained in:
omegablast2002@yahoo.com
2012-07-23 22:44:02 +00:00
parent ecdc1481b0
commit bbf1de5134

View File

@@ -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))