mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- The AI will now activate Lu Su, Wu Advisor and other little AI tweaks.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user