MagicColor.COLORLESS constant

This commit is contained in:
Maxmtg
2013-05-27 09:35:43 +00:00
parent 8b88288a36
commit 828cf74c15
2 changed files with 2 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import forge.Constant;
*/ */
public class MagicColor { public class MagicColor {
public static final byte COLORLESS = 0;
public static final byte WHITE = 1 << 1; public static final byte WHITE = 1 << 1;
public static final byte BLUE = 1 << 2; public static final byte BLUE = 1 << 2;
public static final byte BLACK = 1 << 3; public static final byte BLACK = 1 << 3;

View File

@@ -110,7 +110,7 @@ public class AbilityManaPart implements java.io.Serializable {
for (final String c : produced.split(" ")) { for (final String c : produced.split(" ")) {
if(StringUtils.isNumeric(c)) if(StringUtils.isNumeric(c))
for(int i = Integer.parseInt(c); i > 0; i--) { 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 else
this.lastManaProduced.add(new Mana(MagicColor.fromName(c), source, this)); this.lastManaProduced.add(new Mana(MagicColor.fromName(c), source, this));