mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Set a default logic for the ManaEffect AI.
This commit is contained in:
@@ -87,13 +87,9 @@ public class ManaEffect extends SpellAbilityEffect {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// TODO: Add some logic for AI choice (ArsenalNut 2012/09/16)
|
// TODO: Add some logic for AI choice (ArsenalNut 2012/09/16)
|
||||||
if (sa.hasParam("AILogic")) {
|
if (!sa.hasParam("AILogic") || sa.getParam("AILogic").equals("MostProminentInComputerHand")) {
|
||||||
final String logic = sa.getParam("AILogic");
|
|
||||||
String chosen = Constant.Color.BLACK;
|
String chosen = Constant.Color.BLACK;
|
||||||
if (logic.equals("MostProminentInComputerHand")) {
|
chosen = ComputerUtilCard.getMostProminentColor(activator.getCardsIn(ZoneType.Hand));
|
||||||
chosen = ComputerUtilCard.getMostProminentColor(activator.getCardsIn(
|
|
||||||
ZoneType.Hand));
|
|
||||||
}
|
|
||||||
if (chosen.equals("")) {
|
if (chosen.equals("")) {
|
||||||
chosen = Constant.Color.BLACK;
|
chosen = Constant.Color.BLACK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user