forked from External/mage
Improved rule text generation for effects using DynamicValue.
This commit is contained in:
parent
1ed3f1f4f8
commit
ca82485772
22 changed files with 143 additions and 164 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue