Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
Programming Talk



Cards with X cost information
Moderator: CCGHQ Admins
2 posts
• Page 1 of 1
Cards with X cost information
by kevlahnota » 25 Jan 2011, 04:11
for those who code cards with
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
is combined with a generic/colorless mana like
.
Example card is Stroke of Genius. It has a casting cost of
.
(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
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
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
and the generic/colorless mana for
if your playing multicolored deck.
Workaround 1 is to make a deck that is monocolor
or
Workaround 2 is to remove
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.


Because the game engine doesn't support manual tapping of lands, the game is confused when


Example card is Stroke of Genius. It has a casting cost of



(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

Another example is Blaze. It has


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


Workaround 1 is to make a deck that is monocolor

Workaround 2 is to remove


-
kevlahnota - Programmer
- Posts: 825
- Joined: 19 Jul 2010, 17:45
- Location: Philippines
- Has thanked: 14 times
- Been thanked: 264 times
-
Huggybaby - Administrator
- Posts: 3227
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 750 times
- Been thanked: 601 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: Bing [Bot] and 7 guests