mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
tests: added tests for Chandra Ablaze card and some AI logic;
This commit is contained in:
parent
d28b9e6d05
commit
ebe04dc3a6
3 changed files with 163 additions and 18 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue