- The AI will now activate Lu Su, Wu Advisor and other little AI tweaks.

This commit is contained in:
Sloth
2012-12-06 13:58:11 +00:00
parent 361689c0e4
commit 1810891786
3 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ public class ChooseCardAi extends SpellAiLogic {
return false;
}
} else if (sa.getParam("AILogic").equals("Clone")) {
choices = CardLists.getValidCards(choices, "Permanent.YouDontCtrl,Permanent.NonLegendary", host.getController(), host);
choices = CardLists.getValidCards(choices, "Permanent.YouDontCtrl,Permanent.nonLegendary", host.getController(), host);
if (choices.isEmpty()) {
return false;
}

View File

@@ -114,7 +114,7 @@ public class DrawAi extends SpellAiLogic {
}
// Don't tap creatures that may be able to block
if (ComputerUtil.waitForBlocking(sa)) {
if (ComputerUtil.waitForBlocking(sa) && !sa.hasParam("ActivationPhases")) {
return false;
}

View File

@@ -29,7 +29,7 @@ public class TapAi extends TapAiBase {
// Tap things down if it's Human's turn
} else if (turn.isComputer() && phase.getPhase().isBefore(PhaseType.COMBAT_DECLARE_BLOCKERS)) {
// Tap creatures down if in combat -- handled in tapPrefTargeting().
} else if (source.isSorcery()) {
} else if (AbilityFactory.isSorcerySpeed(sa)) {
// Cast it if it's a sorcery.
} else {
// Generally don't want to tap things with an Instant during AI turn outside of combat