forked from External/mage
Some changes to rule text generation, minor format changes.
This commit is contained in:
parent
11e2df7a86
commit
2e31aacfaf
8 changed files with 54 additions and 23 deletions
|
|
@ -34,7 +34,11 @@ public class PermanentsOnBattlefieldCount implements DynamicValue {
|
|||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility) {
|
||||
return amount * game.getBattlefield().count(filter, sourceAbility.getSourceId(), sourceAbility.getControllerId(), game);
|
||||
int value = game.getBattlefield().count(filter, sourceAbility.getSourceId(), sourceAbility.getControllerId(), game);
|
||||
if (amount != null) {
|
||||
value *= amount;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -47,7 +51,7 @@ public class PermanentsOnBattlefieldCount implements DynamicValue {
|
|||
if (amount != null) {
|
||||
return amount.toString();
|
||||
}
|
||||
return "";
|
||||
return "X";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue