Cascade and other "cast spell without paying" abilities - added card popup support for casting card (closes #11355)

This commit is contained in:
Oleg Agafonov 2023-11-27 00:49:37 +04:00
parent 1dc040a2c9
commit 6e3fe7ec46
3 changed files with 4 additions and 7 deletions

View file

@ -1377,10 +1377,9 @@ public final class CardUtil {
List<Card> partsToCast = cardMap.get(cardToCast.getId());
String partsInfo = partsToCast
.stream()
.map(MageObject::getIdName)
.map(MageObject::getLogName)
.collect(Collectors.joining(" or "));
if (cardToCast == null
|| partsToCast.size() < 1
if (partsToCast.size() < 1
|| !player.chooseUse(
Outcome.PlayForFree, "Cast spell without paying its mana cost (" + partsInfo + ")?", source, game
)) {