* Discard - Fixed a bug that forced palyer to discard the complete hand instead of the defined amount if discarded card was exiled instead of put into graveyard (e.g. Leyland of the Void and Blighting).

This commit is contained in:
LevelX2 2014-04-01 13:03:38 +02:00
parent 2226498576
commit de2a8b66b6

View file

@ -587,8 +587,9 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
TargetDiscard target = new TargetDiscard(playerId);
choose(Outcome.Discard, target, source.getSourceId(), game);
Card card = hand.get(target.getFirstTarget(), game);
if (discard(card, source, game)) {
if (card != null) {
numDiscarded++;
discard(card, source, game);
}
}
}