Page 1 of 1

AbilityCost toString

PostPosted: 11 Jan 2011, 22:34
by sentient6
Judging from the oracle text at [url]gatherer.wizards.com[/url], AbilityCost.toString() does not seem to correctly handle conversion of Sacrifice, Exile, Remove Counter, etc. costs which require just one target, or that cause loss of one life.

Gain and loss text should, I believe, state "Pay 1 life" instead of "Pay one life" and sacrifice type text should read "Sacrifice a creature" not "Sacrifice one creature".

It seems that this could be fixed by changing the numNames array and modifying the toString method slightly. I just wanted to make sure that I'm correct about this and that the current text is not by design before I commit the changes.

Re: AbilityCost toString

PostPosted: 11 Jan 2011, 22:51
by friarsol
Go for it. This text shouldn't have any effect on how Cost works, and the toString portion of Cost was simplified to use numbers instead of how the actual Oracle text so there wouldn't be any "Sacrifice a artifact" issues.