Page 1 of 1

Cards with X cost information

PostPosted: 25 Jan 2011, 04:11
by kevlahnota
for those who code cards with {X} in their casting cost, I've discovered a serious bug that crashes the game randomly (it has a workaround anyway).

Because the game engine doesn't support manual tapping of lands, the game is confused when {X} is combined with a generic/colorless mana like {1}.

Example card is Stroke of Genius. It has a casting cost of {X} {2} {U} .
(I've already changed the code of Stroke of Genius in the mod so it will not crash)

If you cast any card/s with {X} in the casting cost combined with a generic/colorless mana with different lands in play (Ex. Consume Spirit) the game will crash randomly.

Another example is Blaze. It has {X} {R} casting cost. It will not crash BUT
if there is a Sphere of Resistance or Thorn of Amethyst or any cards that adds additional colorless mana to cast a spell in play. The game will crash randomly if the owner of Blaze has different basic lands in play.

It cannot allocate mana for {X} and the generic/colorless mana for {1} if your playing multicolored deck.

Workaround 1 is to make a deck that is monocolor #-o or
Workaround 2 is to remove {X} in the casting cost and add it as an Additional cost via trigger with forced_skip="1" parameters to use it in any deck that uses 3 or more colors to prevent game crash.

:wink:

Re: Cards with X cost information

PostPosted: 25 Jan 2011, 07:57
by Huggybaby
Nice fix, thanks Kev!