friarsol wrote:Alright I'm pretty sure I fixed the colorless costs not being paid properly. But the AI might not be able to pay them not, I tried to get him to play something, but he didn't seem to know how. Not sure when I'll have time to check that part out, but basically when the AI is checking if he has any matching colors, he may explicitly need to look for Colorless too. Hopefully it's only in one or two spots, but in my cursory glance, I didn't see it. So I'll have to swing back around if someone hasn't figured it out by then.
I tried to fix this in r30664 and the AI is definitely able to play these cards now, and auto payment is supported now too for cards with {C} in their mana costs.
That being said, I'm not entirely sure if my fix is fully correct... But hopefully that's how it's supposed to work.

For example, I'm not sure if we still need to test against "1" in this line:
- Code: Select all
if (manaAbilities.get(0).getManaPart().mana().equals("1") || manaAbilities.get(0).getManaPart().mana().equals("C")) {
colorlessManaSources.add(card);
.......
I added an "or" clause for now but probably now these shards should all be named "C" instead of "1", right? (that being said, we might have missed a few somewhere...)
- Agetian