[Simulated AI] Teach simulated AI how to choose card modes (e.g. on Charms and Commands).

Note: There's still a limitation in the simulated AI where it doesn't know what to do when multiple effects from an ability require targets. This can be addressed in the future to support things like Cryptic Command to both counter a spell and bounce a permanent.
This commit is contained in:
Myrd
2016-12-29 06:36:08 +00:00
parent c8ad6fe56a
commit 1d1b94e757
11 changed files with 424 additions and 145 deletions

View File

@@ -522,7 +522,7 @@ public class GameSimulatorTest extends TestCase {
SpellAbility sa = findSAWithPrefix(ajani, "+1: Distribute");
assertNotNull(sa);
PossibleTargetSelector selector = new PossibleTargetSelector(game, p, sa);
PossibleTargetSelector selector = new PossibleTargetSelector(sa);
while (selector.selectNextTargets()) {
GameSimulator sim = createSimulator(game, p);
sim.simulateSpellAbility(sa);