magefree / mage

Magic Another Game Engine
http://xmage.today
MIT License
1.84k stars 759 forks source link

Dungeon of the Mad Mage must be reworked due infintite choose dialog #8236

Open JayDi85 opened 2 years ago

JayDi85 commented 2 years ago

Exile the top two cards of your library. You may play them.

Current implementation of [[Dungeon of the Mad Mage]] uses infinite choose dialog to play 2 cards (I think the reason: user must choose order of the cards to play). It's freeze an AI game (#5023) on non playable cards (computer can't choose to stop to play and try again and again -- that's why all "infinite/while" cycles must removes card after each try).

So it must be reworked to direct flow dialogs. Example:

P.S. AI hint/logic can be added by command like if (player.isComputer()) {...}

github-actions[bot] commented 2 years ago

Dungeon of the Mad Mage - (Gatherer) (Scryfall) (EDHREC)

Dungeon Yawning Portal — You gain 1 life. (Leads to: Dungeon Level) Dungeon Level — Scry 1. (Leads to: Goblin Bazaar, Twisted Caverns) Goblin Bazaar — Create a Treasure token. (Leads to: Lost Level) Twisted Caverns — Target creature can't attack until your next turn. (Leads to: Lost Level) Lost Level — Scry 2. (Leads to: Runestone Caverns, Muiral's Graveyard) Runestone Caverns — Exile the top two cards of your library. You may play them. (Leads to: Deep Mines) Muiral's Graveyard — Create two 1/1 black Skeleton creature tokens. (Leads to: Deep Mines) Deep Mines — Scry 3. (Leads to: Mad Wizard's Lair) Mad Wizard's Lair — Draw three cards and reveal them. You may cast one of them without paying its mana cost.