mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added an AILogic parameter to AF ChoseColor.
- Converted Curse of Wizardry to script.
This commit is contained in:
@@ -52,7 +52,7 @@ public final class GameActionUtil {
|
||||
//playCard_Storm(sa);
|
||||
|
||||
playCard_Vengevine(c);
|
||||
playCard_Curse_of_Wizardry(c);
|
||||
//playCard_Curse_of_Wizardry(c);
|
||||
playCard_Venser_Emblem(c);
|
||||
playCard_Ichneumon_Druid(c);
|
||||
|
||||
@@ -455,7 +455,7 @@ public final class GameActionUtil {
|
||||
*
|
||||
* @param c a {@link forge.Card} object.
|
||||
*/
|
||||
public static void playCard_Curse_of_Wizardry(final Card c) {
|
||||
/*public static void playCard_Curse_of_Wizardry(final Card c) {
|
||||
CardList list = AllZoneUtil.getCardsIn(Zone.Battlefield, "Curse of Wizardry");
|
||||
|
||||
if (list.size() > 0) {
|
||||
@@ -481,7 +481,7 @@ public final class GameActionUtil {
|
||||
}
|
||||
} //if
|
||||
} //if
|
||||
} //Curse of Wizardry
|
||||
}*/ //Curse of Wizardry
|
||||
|
||||
/**
|
||||
* <p>payManaDuringAbilityResolve.</p>
|
||||
|
||||
@@ -578,10 +578,19 @@ public class AbilityFactory_Choose {
|
||||
String choice = (String) o;
|
||||
card.setChosenColor(choice);
|
||||
} else {
|
||||
//TODO - needs improvement
|
||||
card.setChosenColor(Constant.Color.Black);
|
||||
String message = "Computer chooses " + Constant.Color.Black;
|
||||
JOptionPane.showMessageDialog(null, message, "" + card, JOptionPane.PLAIN_MESSAGE);
|
||||
String chosen = "";
|
||||
if (params.containsKey("AILogic")) {
|
||||
String logic = params.get("AILogic");
|
||||
if (logic.equals("MostProminentInHumanDeck")) {
|
||||
chosen = CardFactoryUtil.getMostProminentColor(
|
||||
AllZoneUtil.getCardsInGame().getController(AllZone.getHumanPlayer()));
|
||||
}
|
||||
}
|
||||
if (chosen.equals("")) {
|
||||
chosen = Constant.Color.Green;
|
||||
}
|
||||
GuiUtils.getChoice("Computer picked: ", chosen);
|
||||
card.setChosenColor(chosen);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1137,7 +1137,7 @@ public abstract class AbstractCardFactory implements NewConstants, CardFactoryIn
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if (cardName.equals("Curse of Wizardry")) {
|
||||
/*else if (cardName.equals("Curse of Wizardry")) {
|
||||
final Ability ability = new Ability(card, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
@@ -1181,7 +1181,7 @@ public abstract class AbstractCardFactory implements NewConstants, CardFactoryIn
|
||||
ability.setStackDescription(sb.toString());
|
||||
|
||||
card.addComesIntoPlayCommand(comesIntoPlay);
|
||||
} //*************** END ************ END **************************
|
||||
}*/ //*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
|
||||
Reference in New Issue
Block a user