- 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)) {

View File

@@ -1,7 +1,7 @@
Name:Glimmer of Genius
ManaCost:3 U
Types:Instant
A:SP$ Scry | Cost$ 3 U | ScryNum$ 2 | SubAbility$ DBDraw | SpellDescription$ Scry 2, then draw two cards. You get {E}{E} (two energy counters).
A:SP$ Scry | Cost$ 3 U | ScryNum$ 2 | SubAbility$ DBDraw | AILogic$ AtOpponentsCombatOrAfter | SpellDescription$ Scry 2, then draw two cards. You get {E}{E} (two energy counters).
SVar:DBDraw:DB$Draw | NumCards$ 2 | SubAbility$ DBEnergy
SVar:DBEnergy:DB$ PutCounter | Defined$ You | CounterType$ ENERGY | CounterNum$ 2
SVar:Picture:http://www.wizards.com/global/images/magic/general/glimmer_of_genius.jpg