mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Prevent printing out "an another" in card rules text
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user