Implement Ice Cauldron

This commit is contained in:
Lyu Zong-Hong
2021-01-19 22:35:41 +09:00
parent e10c982b7e
commit 4cd6fca6d1
2 changed files with 29 additions and 4 deletions

View File

@@ -181,12 +181,21 @@ public class ManaEffect extends SpellAbilityEffect {
}
abMana.setExpressChoice(sb.toString().trim());
} else if (type.equals("LastNotedType")) {
Mana manaType = (Mana) Iterables.getFirst(card.getRemembered(), null);
if (manaType == null) {
final StringBuilder sb = new StringBuilder();
int nMana = 0;
for (Object o : card.getRemembered()) {
if (o instanceof Mana) {
if (nMana > 0) {
sb.append(" ");
}
sb.append(o.toString());
nMana++;
}
}
if (nMana == 0) {
return;
}
String cs = manaType.toString();
abMana.setExpressChoice(cs);
abMana.setExpressChoice(sb.toString());
} else if (type.startsWith("EachColorAmong")) {
final String res = type.split("_")[1];
final CardCollection list = CardLists.getValidCards(card.getGame().getCardsIn(ZoneType.Battlefield),