tests: added tests for Chandra Ablaze card and some AI logic;

This commit is contained in:
Oleg Agafonov 2024-05-12 14:37:10 +04:00
parent d28b9e6d05
commit ebe04dc3a6
3 changed files with 163 additions and 18 deletions

View file

@ -169,6 +169,7 @@ public class ComputerPlayer extends PlayerImpl {
if (target.getOriginalTarget() instanceof TargetDiscard) {
findPlayables(game);
// discard not playable first
if (!unplayable.isEmpty()) {
for (int i = unplayable.size() - 1; i >= 0; i--) {
if (target.canTarget(abilityControllerId, unplayable.values().toArray(new Card[0])[i].getId(), null, game)) {