Reflecting Pool Bugs
 Posted: 07 Jul 2010, 17:10
Posted: 07 Jul 2010, 17:10So I added the Vivid lands and Gemstone Mine recently, and one of the first things I noticed was that they didn't work with Reflecting Pool. So I started searching for where Reflecting Pool got it's info from. It seems it's trying to parse a keyword, and since the Gemstone Mine keyword is basically "any color" and a dialog box, the Pool can't parse the keyword and defaults to 1. I'm guessing this is because it knows there is a mana ability, but can't find any color. 
I've resolved this with adding a new string called reflectableMana that can be manually set to what mana the land might generate. I'm going to upload the patch so you guys can check it out before I commit. I use TortoiseSVN, but the Patch should open in a text editor if you use something else.
The special sauce is in the getManaFromCardList function in Ability_Reflected_Mana.
where I replaced
This should allow us to code up River of Tears and Gemstone Caverns to work properly with Reflecting Pool by toggling their ReflectableMana type as appropriate. Along with any other lands that currently do not Reflect properly.
			I've resolved this with adding a new string called reflectableMana that can be manually set to what mana the land might generate. I'm going to upload the patch so you guys can check it out before I commit. I use TortoiseSVN, but the Patch should open in a text editor if you use something else.
The special sauce is in the getManaFromCardList function in Ability_Reflected_Mana.
where I replaced
- Code: Select all
- String newMana = am.mana(); // This call would break for a reflected mana ability
- Code: Select all
- String newMana = otherCard.getReflectableMana();
 if (newMana == "")
 newMana = am.mana(); // This call would break for a reflected mana ability
This should allow us to code up River of Tears and Gemstone Caverns to work properly with Reflecting Pool by toggling their ReflectableMana type as appropriate. Along with any other lands that currently do not Reflect properly.
 
 