mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed an incompatibility of getShortColorsString and ManaCost (the former translating Colorless to C which the latter doesn't take).
This commit is contained in:
@@ -31,7 +31,7 @@ public class ManaCost {
|
|||||||
* @param manaCost a {@link java.lang.String} object.
|
* @param manaCost a {@link java.lang.String} object.
|
||||||
*/
|
*/
|
||||||
public ManaCost(String manaCost) {
|
public ManaCost(String manaCost) {
|
||||||
if (manaCost.equals(""))
|
if (manaCost.equals("") || manaCost.equals("C"))
|
||||||
manaCost = "0";
|
manaCost = "0";
|
||||||
|
|
||||||
while (manaCost.contains("X")) {
|
while (manaCost.contains("X")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user