- Improved AI using Cauldron Dance and Surprise Deployment.

This commit is contained in:
Sloth
2015-03-13 12:54:44 +00:00
parent 328057b722
commit 803cd36626
3 changed files with 9 additions and 4 deletions

View File

@@ -55,12 +55,17 @@ public class ChangeZoneAi extends SpellAbilityAi {
}
if (sa.hasParam("AILogic")) {
if (sa.getParam("AILogic").equals("Always")) {
String logic = sa.getParam("AILogic");
if (logic.equals("Always")) {
return true;
} else if (sa.getParam("AILogic").equals("BeforeCombat")) {
} else if (logic.equals("BeforeCombat")) {
if (aiPlayer.getGame().getPhaseHandler().getPhase().isAfter(PhaseType.COMBAT_BEGIN)) {
return false;
}
} else if (logic.equals("SurpriseBlock")) {
if (aiPlayer.getGame().getPhaseHandler().getPhase().isBefore(PhaseType.COMBAT_DECLARE_ATTACKERS)) {
return false;
}
}
}