- Somewhat less risky logic for the AI Glimmer of Genius (otherwise it manalocks itself too much)

This commit is contained in:
Agetian
2018-01-23 18:03:31 +03:00
parent b20c5acf75
commit 2e51375c0f
2 changed files with 7 additions and 1 deletions

View File

@@ -56,6 +56,12 @@ public class ScryAi extends SpellAbilityAi {
}
}
if ("AtOpponentsCombatOrAfter".equals(sa.getParam("AILogic"))) {
if (ph.getPlayerTurn() == ai || ph.getPhase().isBefore(PhaseType.COMBAT_DECLARE_ATTACKERS)) {
return false;
}
}
// in the playerturn Scry should only be done in Main1 or in upkeep if able
if (ph.isPlayerTurn(ai)) {
if (SpellAbilityAi.isSorcerySpeed(sa)) {