- The AI will no longer use AF Dig abilities with destination hand before Main2.

This commit is contained in:
Sloth
2011-10-11 09:37:46 +00:00
parent 44fb8577a0
commit 58cca6635b

View File

@@ -196,7 +196,7 @@ public final class AbilityFactory_Reveal {
* @return a boolean. * @return a boolean.
*/ */
private static boolean digCanPlayAI(final AbilityFactory af, final SpellAbility sa) { private static boolean digCanPlayAI(final AbilityFactory af, final SpellAbility sa) {
HashMap<String, String> params = af.getMapParams();
double chance = .4; // 40 percent chance with instant speed stuff double chance = .4; // 40 percent chance with instant speed stuff
if (AbilityFactory.isSorcerySpeed(sa)) { if (AbilityFactory.isSorcerySpeed(sa)) {
chance = .667; // 66.7% chance for sorcery speed (since it will never activate EOT) chance = .667; // 66.7% chance for sorcery speed (since it will never activate EOT)
@@ -222,6 +222,11 @@ public final class AbilityFactory_Reveal {
return false; return false;
} }
//Don't use draw abilities before main 2 if possible
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivationPhases")
&& !params.containsKey("DestinationZone"))
return false;
if (AbilityFactory.playReusable(sa)) { if (AbilityFactory.playReusable(sa)) {
randomReturn = true; randomReturn = true;
} }