mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Some changes to rule text generation.
This commit is contained in:
parent
e51b7731bb
commit
647c2b2ee9
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue