- Added Hall of Gemstone

This commit is contained in:
swordshine
2013-12-20 08:06:33 +00:00
parent 5dee59e8e5
commit c08e984e35
4 changed files with 21 additions and 1 deletions

View File

@@ -867,6 +867,9 @@ public class ComputerUtilCard {
else if (logic.equals("MostProminentAttackers") && game.getPhaseHandler().inCombat()) {
chosen.add(ComputerUtilCard.getMostProminentColor(game.getCombat().getAttackers(), colorChoices));
}
else if (logic.equals("MostProminentInActivePlayerHand")) {
chosen.add(ComputerUtilCard.getMostProminentColor(game.getPhaseHandler().getPlayerTurn().getCardsIn(ZoneType.Hand), colorChoices));
}
else if (logic.equals("MostProminentKeywordInComputerDeck")) {
List<Card> list = ai.getAllCards();
int m1 = 0;

View File

@@ -25,6 +25,7 @@ import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import forge.card.MagicColor;
import forge.game.Game;
import forge.game.GameLogEntryType;
import forge.game.ability.AbilityFactory;
@@ -219,7 +220,12 @@ public class ReplacementHandler {
final Player player1 = (Player) runParams.get("Player");
final String rep = (String) runParams.get("Mana");
// Replaced mana type
manaAb.getManaPart().setManaReplaceType(replacementEffect.getHostCard().getSVar(mapParams.get("ManaReplacement")));
final Card repHost = replacementEffect.getHostCard();
String repType = repHost.getSVar(mapParams.get("ManaReplacement"));
if (repType.contains("Chosen") && !repHost.getChosenColor().isEmpty()) {
repType = repType.replace("Chosen", MagicColor.toShortString(repHost.getChosenColor().get(0)));
}
manaAb.getManaPart().setManaReplaceType(repType);
manaAb.getManaPart().produceMana(rep, player1, manaAb);
} else {
player.getController().playSpellAbilityNoStack(effectSA, true);