Improved rule text generation for effects using DynamicValue.

This commit is contained in:
North 2011-06-05 15:37:06 +03:00
parent 1ed3f1f4f8
commit ca82485772
22 changed files with 143 additions and 164 deletions

View file

@ -84,7 +84,10 @@ public class SetPowerToughnessSourceEffect extends ContinuousEffectImpl<SetPower
public String getDynamicText(Ability source) {
StringBuilder sb = new StringBuilder();
sb.append("{this} ").append(" becomes ");
sb.append(power).append("/").append(toughness).append(" ").append(duration.toString());
sb.append(power).append("/").append(toughness);
if (duration != Duration.WhileOnBattlefield)
sb.append(" ").append(duration.toString());
sb.append(power.getMessage());
return sb.toString();
}