mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Changed tooltip text generation of DiscardTargetEfect.
This commit is contained in:
parent
3d6a2ec015
commit
461c6e971e
1 changed files with 4 additions and 7 deletions
|
@ -106,13 +106,10 @@ public class DiscardTargetEffect extends OneShotEffect<DiscardTargetEffect> {
|
|||
sb.append("Target ").append(mode.getTargets().get(0).getTargetName());
|
||||
}
|
||||
sb.append(" discards ");
|
||||
sb.append(CardUtil.numberToText(amount.toString())).append(" card");
|
||||
try {
|
||||
if (Integer.parseInt(amount.toString()) > 1) {
|
||||
sb.append("s");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
sb.append("s");
|
||||
if (amount.toString().equals("1")) {
|
||||
sb.append(" a card");
|
||||
} else {
|
||||
sb.append(CardUtil.numberToText(amount.toString())).append(" cards");
|
||||
}
|
||||
if (randomDiscard) {
|
||||
sb.append(" at random");
|
||||
|
|
Loading…
Reference in a new issue