mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Implement Ice Cauldron
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user