mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
* fixing issues with zero mana cost (such as suspend of Lotus Bloom)
This commit is contained in:
@@ -161,9 +161,8 @@ public class CostMana extends CostPart {
|
|||||||
final StringBuilder sb = new StringBuilder();
|
final StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
sb.append(Strings.repeat("X ", this.amountX));
|
sb.append(Strings.repeat("X ", this.amountX));
|
||||||
if (!this.mana.equals("0")) {
|
if ( sb.length() == 0 || mana != "0" )
|
||||||
sb.append(this.mana);
|
sb.append(this.mana);
|
||||||
}
|
|
||||||
|
|
||||||
return sb.toString().trim();
|
return sb.toString().trim();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user