Some changes to rule text generation.

This commit is contained in:
LevelX2 2013-01-22 01:32:32 +01:00
parent e51b7731bb
commit 647c2b2ee9

View file

@ -90,7 +90,11 @@ public class LoseLifeTargetEffect extends OneShotEffect<LoseLifeTargetEffect> {
}
sb.append("life");
if (message.length() > 0) {
if (amount.toString().equals("X")) {
sb.append(", where X is ");
} else {
sb.append(message.equals("1") ? " equal to the number of " : " for each ");
}
sb.append(message);
}
return sb.toString();