Prevent printing out "an another" in card rules text

This commit is contained in:
drdev
2014-07-18 07:52:17 +00:00
parent 461e425908
commit b3edcf8620
6 changed files with 13 additions and 9 deletions

View File

@@ -677,6 +677,10 @@ public class Cost {
* @return a {@link java.lang.String} object.
*/
public static String convertIntAndTypeToWords(final int i, final String type) {
if (i == 1 && type.startsWith("another")) {
return type; //prevent returning "an another"
}
final StringBuilder sb = new StringBuilder();
if (i >= Cost.NUM_NAMES.length) {