mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
[FIX] The third half of the fix for issue 302 (still testing).
This commit is contained in:
parent
f0fdd7d1ba
commit
ed2724fce7
1 changed files with 9 additions and 0 deletions
|
|
@ -205,6 +205,15 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ( target instanceof TargetCardInHand ) {
|
||||||
|
List<Card> cards = new ArrayList<Card>();
|
||||||
|
cards.addAll(this.hand.getCards(game));
|
||||||
|
Card pick = pickTarget(cards, outcome, target, null, game);
|
||||||
|
if ( pick != null ) {
|
||||||
|
target.add(pick.getId(), game);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue