mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Improved AI using Cauldron Dance and Surprise Deployment.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user