mirror of
https://github.com/correl/mage.git
synced 2025-03-30 09:08:36 -09: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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue