forked from External/mage
New AttackingCreatureCount and some changes to rule text generation.
This commit is contained in:
parent
c89611c0c6
commit
871b20c537
3 changed files with 93 additions and 5 deletions
|
|
@ -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 ");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue