Fixed a problem with activated spells that could not be used but were used by AI and available mana calculation.

This commit is contained in:
LevelX2 2016-11-01 14:31:02 +01:00
parent 35c90f2dec
commit 3f882b73c4
9 changed files with 50 additions and 26 deletions

View file

@ -138,8 +138,14 @@ public class BecomesCreatureAllEffect extends ContinuousEffectImpl {
if (!"".equals(duration.toString())) {
sb.append(duration.toString()).append(", ");
}
sb.append("all ");
sb.append(filter.getMessage());
sb.append(" become a ").append(token.getDescription());
if ("".equals(duration.toString())) {
sb.append(" are ");
} else {
sb.append(" become ");
}
sb.append(token.getDescription());
if (type != null && type.length() > 0) {
sb.append(". They are still ").append(type);
}