mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
MagicColor.COLORLESS constant
This commit is contained in:
@@ -8,6 +8,7 @@ import forge.Constant;
|
||||
*/
|
||||
public class MagicColor {
|
||||
|
||||
public static final byte COLORLESS = 0;
|
||||
public static final byte WHITE = 1 << 1;
|
||||
public static final byte BLUE = 1 << 2;
|
||||
public static final byte BLACK = 1 << 3;
|
||||
|
||||
@@ -110,7 +110,7 @@ public class AbilityManaPart implements java.io.Serializable {
|
||||
for (final String c : produced.split(" ")) {
|
||||
if(StringUtils.isNumeric(c))
|
||||
for(int i = Integer.parseInt(c); i > 0; i--) {
|
||||
this.lastManaProduced.add(new Mana((byte)0, source, this));
|
||||
this.lastManaProduced.add(new Mana(MagicColor.COLORLESS, source, this));
|
||||
}
|
||||
else
|
||||
this.lastManaProduced.add(new Mana(MagicColor.fromName(c), source, this));
|
||||
|
||||
Reference in New Issue
Block a user