mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +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;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (sa.getParam("AILogic").equals("Clone")) {
|
} 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()) {
|
if (choices.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ public class DrawAi extends SpellAiLogic {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Don't tap creatures that may be able to block
|
// Don't tap creatures that may be able to block
|
||||||
if (ComputerUtil.waitForBlocking(sa)) {
|
if (ComputerUtil.waitForBlocking(sa) && !sa.hasParam("ActivationPhases")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public class TapAi extends TapAiBase {
|
|||||||
// Tap things down if it's Human's turn
|
// Tap things down if it's Human's turn
|
||||||
} else if (turn.isComputer() && phase.getPhase().isBefore(PhaseType.COMBAT_DECLARE_BLOCKERS)) {
|
} else if (turn.isComputer() && phase.getPhase().isBefore(PhaseType.COMBAT_DECLARE_BLOCKERS)) {
|
||||||
// Tap creatures down if in combat -- handled in tapPrefTargeting().
|
// 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.
|
// Cast it if it's a sorcery.
|
||||||
} else {
|
} else {
|
||||||
// Generally don't want to tap things with an Instant during AI turn outside of combat
|
// Generally don't want to tap things with an Instant during AI turn outside of combat
|
||||||
|
|||||||
Reference in New Issue
Block a user