Some changes to rule text generation and some minor formating changes.

This commit is contained in:
LevelX2 2013-01-05 14:52:13 +01:00
parent aef4a61779
commit 57ed19c346
12 changed files with 77 additions and 27 deletions

View file

@ -116,19 +116,23 @@ public class BoostTargetEffect extends ContinuousEffectImpl<BoostTargetEffect> {
sb.append("Target ").append(target.getTargetName()).append(" gets ");
}
String p = power.toString();
if(!p.startsWith("-"))
if(!p.startsWith("-")) {
sb.append("+");
}
sb.append(p).append("/");
String t = toughness.toString();
if(!t.startsWith("-")){
if(p.startsWith("-"))
if(p.startsWith("-")) {
sb.append("-");
else
}
else {
sb.append("+");
}
}
sb.append(t);
if (duration != Duration.WhileOnBattlefield)
if (duration != Duration.WhileOnBattlefield) {
sb.append(" ").append(duration.toString());
}
String message = power.getMessage();
if (message.length() > 0) {
sb.append(" for each ");