mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Improved prompt for Wand of Ith.
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user