fixed life payment cost text
@@ -18,13 +18,12 @@ public class PayLifeCost extends CostImpl {
private final DynamicValue amount;
public PayLifeCost(int amount) {
- this.amount = StaticValue.get(amount);
- this.text = "Pay " + Integer.toString(amount) + " life";
+ this(StaticValue.get(amount), Integer.toString(amount) + " life");
}
public PayLifeCost(DynamicValue amount, String text) {
this.amount = amount.copy();
- this.text = "Pay " + text;
+ this.text = "pay " + text;
}
public PayLifeCost(PayLifeCost cost) {
