magefree / mage

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

Power Depot's Mana Restriction Isn't Being Calculated Right for Showing Something is Castable #8754

Open Alex-Vasile opened 2 years ago

Alex-Vasile commented 2 years ago

On the board:

In hand

Audacious Reshapers is shown as cartable, but this is wrong since I have no available red mana. The red mana that Power Depot could produce cannot be used on artifacts (this is an enchantment).

If I try to then cast the spell, I will (correctly) be unable to pay for it using the red mana from Power Depot.

Example
github-actions[bot] commented 2 years ago

Power Depot - (Gatherer) (Scryfall) (EDHREC)

Artifact Land Power Depot enters the battlefield tapped. {T}: Add {C}. {T}: Add one mana of any color. Spend this mana only to cast artifact spells or activate abilities of artifacts. Modular 1

Audacious Reshapers - (Gatherer) (Scryfall) (EDHREC)

{2}{R} Creature — Human Artificer 3/3 {T}, Sacrifice an artifact: Reveal cards from the top of your library until you reveal an artifact card. Put that card onto the battlefield and the rest on the bottom of your library in a random order. Audacious Reshapers deals damage to you equal to the number of cards revealed this way.