split on first colon into two parts, fixes bug where effect contains colon

master
melvin 2013-12-10 10:37:16 +08:00
parent d9767f4c74
commit 1a60ac47ff
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public abstract class MagicPermanentActivation extends MagicActivation<MagicPerm
private static final String COMMA = "\\s*,\\s*"; private static final String COMMA = "\\s*,\\s*";
public static final MagicPermanentActivation create(final String act) { public static final MagicPermanentActivation create(final String act) {
final String[] token = act.split(COLON); final String[] token = act.split(COLON, 2);
final String cost = token[0]; final String cost = token[0];
final String rule = token[1]; final String rule = token[1];