* Thoughtseize - Fixed a bug that locks game if taget player had no non land cards on hand.

This commit is contained in:
LevelX2 2014-02-17 22:39:10 +01:00
parent e44abc5244
commit e7b8504d52

View file

@ -99,7 +99,7 @@ class ThoughtseizeEffect extends OneShotEffect<ThoughtseizeEffect> {
if (you != null) { if (you != null) {
TargetCard target = new TargetCard(Zone.HAND, filter); TargetCard target = new TargetCard(Zone.HAND, filter);
target.setRequired(true); target.setRequired(true);
if (target.canChoose(source.getControllerId(), game) && you.chooseTarget(outcome, player.getHand(), target, source, game)) { if (target.canChoose(source.getControllerId(), player.getId(), game) && you.chooseTarget(outcome, player.getHand(), target, source, game)) {
Card card = player.getHand().get(target.getFirstTarget(), game); Card card = player.getHand().get(target.getFirstTarget(), game);
if (card != null) { if (card != null) {
return player.discard(card, source, game); return player.discard(card, source, game);