mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* 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:
parent
2226498576
commit
de2a8b66b6
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue