New AttackingCreatureCount and some changes to rule text generation.

This commit is contained in:
LevelX2 2013-01-09 00:29:07 +01:00
parent c89611c0c6
commit 871b20c537
3 changed files with 93 additions and 5 deletions

View file

@ -77,12 +77,12 @@ public class DrawCardControllerEffect extends OneShotEffect<DrawCardControllerEf
private void setText() {
StringBuilder sb = new StringBuilder();
boolean oneCard = (amount instanceof StaticValue && amount.calculate(null, null) == 1)
|| amount instanceof PermanentsOnBattlefieldCount;
|| amount instanceof PermanentsOnBattlefieldCount || amount.toString() == "1";
sb.append("draw ").append(oneCard ? "a" : amount).append(" card");
if (!oneCard) {
sb.append("s");
}
String message = amount.getMessage();
String message = amount.getMessage();
if (message.length() > 0) {
sb.append(" for each ");
}