- Improved prompt for Wand of Ith.

This commit is contained in:
Agetian
2017-08-22 04:33:56 +00:00
parent 1e6467cf80
commit e7c30da23c
2 changed files with 15 additions and 1 deletions

View File

@@ -78,6 +78,20 @@ public class DiscardEffect extends SpellAbilityEffect {
if (mode.equals("Defined")) {
sb.append(" defined cards");
if (sa.getHostCard() != null) {
final List<Card> toDiscard = AbilityUtils.getDefinedCards(sa.getHostCard(), sa.getParam("DefinedCards"), sa);
if (!toDiscard.isEmpty()) {
sb.append(": ");
List<String> definedNames = Lists.newArrayList();
for (Card discarded : toDiscard) {
definedNames.add(discarded.toString());
}
sb.append(String.join(",", definedNames));
}
}
}
if (mode.equals("Random")) {