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:
@@ -3040,7 +3040,7 @@ MayAbility::MayAbility(GameObserver* observer, int _id, MTGAbility * _ability, M
|
|||||||
void MayAbility::Update(float dt)
|
void MayAbility::Update(float dt)
|
||||||
{
|
{
|
||||||
MTGAbility::Update(dt);
|
MTGAbility::Update(dt);
|
||||||
if (!triggered && !game->getCurrentTargetChooser())
|
if (!triggered && !game->getCurrentTargetChooser() && !game->mLayers->actionLayer()->menuObject)
|
||||||
{
|
{
|
||||||
triggered = 1;
|
triggered = 1;
|
||||||
if(optionalCost && !source->controller()->getManaPool()->canAfford(optionalCost))
|
if(optionalCost && !source->controller()->getManaPool()->canAfford(optionalCost))
|
||||||
|
|||||||
Reference in New Issue
Block a user