- Added Harvest Mage (see http://www.slightlymagic.net/forum/viewtopic.php?f=52&t=14167 for existing issue that is more noticeable with Harvest Mage)

This commit is contained in:
moomarc
2014-03-31 13:25:29 +00:00
parent 156c0c1a4f
commit be3661edee
3 changed files with 21 additions and 1 deletions

View File

@@ -593,7 +593,15 @@ public class AbilityManaPart implements java.io.Serializable {
}
if (manaReplace.startsWith("Any")) {
// Replace any type and amount
return manaReplace.split("->")[1];
String replaced = manaReplace.split("->")[1];
if (replaced.equals("Any")) {
byte rs = MagicColor.GREEN;
if (act != null) {
rs = act.getController().chooseColor("Choose a color", sa, ColorSet.fromMask(MagicColor.ALL_COLORS));
}
replaced = MagicColor.toShortString(rs);
}
return replaced;
}
final Pattern splitter = Pattern.compile("->");
// Replace any type