mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Properly report in case the chosen pile somehow ended up being empty.
This commit is contained in:
@@ -103,9 +103,13 @@ public class TwoPilesEffect extends SpellAbilityEffect {
|
||||
CardCollectionView unchosenPile = !pile1WasChosen ? pile1 : pile2;
|
||||
|
||||
String notification = chooser + " chooses Pile " + (pile1WasChosen ? "1" : "2") + ":\n";
|
||||
if (!chosenPile.isEmpty()) {
|
||||
for (Card c : chosenPile) {
|
||||
notification += c.getName() + "\n";
|
||||
}
|
||||
} else {
|
||||
notification += "(Empty pile)";
|
||||
}
|
||||
|
||||
p.getGame().getAction().nofityOfValue(sa, chooser, notification, chooser);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user