Persee wrote:I tested the ProduceMana funtion and I noticed that the AI taps lands for do nothing.
Even if it's really clever, I have never been a fan of this way of producing mana, in fact I avoided coding cards that needed to be done like this. I know it's a huge limitation, but I'm happy anyway.
I discovered something useful that can mimic any card that produces 2 mana (Ravnica bounce lands or
Sol Ring for example) without using this trick. It has a problem (read on and see), but I share it in case someone needs it.
Let's take
Sol Ring for example. If you code its mana ability with:
- Code: Select all
<PRODUCES amount="{2}" />
you make something really broken. Whenever you need only 1 mana and your lands are already tapped, the game will provide the mana with
Sol Ring without tapping it!

So you could have infinite mana as long as you can pay

at a time.
A better way to do it is to give
Sol Ring 2 mana abilities, each one producing 1 mana. I discovered that the mana abilities are used all together when tapping the permanent, and this way, if you need only 1 mana,
Sol Ring becomes tapped. The only downside is that mana pool doesn't exist in the game, so if you use
Sol Ring for only 1 mana, the other point is lost.

Anyway it's better than allowing infinite mana.
