mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user